Commit a1f2ca82 authored by Jeremy Hylton's avatar Jeremy Hylton

Be more thorough about deleting ZEC files.

parent b05ad8e8
...@@ -86,6 +86,7 @@ class CommonSetupTearDown(StorageTestBase): ...@@ -86,6 +86,7 @@ class CommonSetupTearDown(StorageTestBase):
self._pids = [] self._pids = []
self._servers = [] self._servers = []
self.conf_paths = [] self.conf_paths = []
self.caches = []
self._newAddr() self._newAddr()
self.startServer() self.startServer()
...@@ -105,13 +106,11 @@ class CommonSetupTearDown(StorageTestBase): ...@@ -105,13 +106,11 @@ class CommonSetupTearDown(StorageTestBase):
# Not in Windows Python until 2.3 # Not in Windows Python until 2.3
for pid in self._pids: for pid in self._pids:
os.waitpid(pid, 0) os.waitpid(pid, 0)
for i in 0, 1: for c in self.caches:
path = "c1-test-%d.zec" % i for i in 0, 1:
if os.path.exists(path): path = "c1-test-%d.zec" % i
try: if os.path.exists(path):
os.unlink(path) os.unlink(path)
except os.error:
pass
self.__super_tearDown() self.__super_tearDown()
def _newAddr(self): def _newAddr(self):
...@@ -127,6 +126,7 @@ class CommonSetupTearDown(StorageTestBase): ...@@ -127,6 +126,7 @@ class CommonSetupTearDown(StorageTestBase):
def openClientStorage(self, cache='', cache_size=200000, wait=1, def openClientStorage(self, cache='', cache_size=200000, wait=1,
read_only=0, read_only_fallback=0, read_only=0, read_only_fallback=0,
username=None, password=None, realm=None): username=None, password=None, realm=None):
self.caches.append(cache)
storage = TestClientStorage(self.addr, storage = TestClientStorage(self.addr,
client=cache, client=cache,
cache_size=cache_size, cache_size=cache_size,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment