BIND 10 trac2853, updated. fe14d0cfc32360547afc55ceded8c69123a70214 [2853] Cleanup the mapped file after tests are run
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Jun 6 20:08:17 UTC 2013
The branch, trac2853 has been updated
via fe14d0cfc32360547afc55ceded8c69123a70214 (commit)
from faffa474e24d5e3bedc06088a388a0965d5059af (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit fe14d0cfc32360547afc55ceded8c69123a70214
Author: Mukund Sivaraman <muks at isc.org>
Date: Fri Jun 7 01:37:58 2013 +0530
[2853] Cleanup the mapped file after tests are run
-----------------------------------------------------------------------
Summary of changes:
.../python/isc/datasrc/tests/clientlist_test.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/python/isc/datasrc/tests/clientlist_test.py b/src/lib/python/isc/datasrc/tests/clientlist_test.py
index 51af887..ce9b351 100644
--- a/src/lib/python/isc/datasrc/tests/clientlist_test.py
+++ b/src/lib/python/isc/datasrc/tests/clientlist_test.py
@@ -21,6 +21,7 @@ import os
import sys
TESTDATA_PATH = os.environ['GLOBAL_TESTDATA_PATH'] + os.sep
+MAPFILE_PATH = os.environ['TESTDATA_WRITE_PATH'] + os.sep + 'test.mapped'
class ClientListTest(unittest.TestCase):
"""
@@ -38,6 +39,9 @@ class ClientListTest(unittest.TestCase):
self.finder = None
self.clist = None
+ if os.path.exists(MAPFILE_PATH):
+ os.unlink(MAPFILE_PATH)
+
def test_constructors(self):
"""
Test the constructor. It should accept an RRClass. Check it
@@ -169,8 +173,7 @@ class ClientListTest(unittest.TestCase):
"cache-type": "mapped"
}]''', True)
- map_params = '{"mapped-file": "' + os.environ['TESTDATA_WRITE_PATH'] + \
- os.sep + 'testmapped.mapped"}'
+ map_params = '{"mapped-file": "' + MAPFILE_PATH + '"}'
self.clist.reset_memory_segment("MasterFiles",
isc.datasrc.ConfigurableClientList.CREATE,
map_params)
More information about the bind10-changes
mailing list