Commit db22e4cc authored by Jeremy Hylton's avatar Jeremy Hylton

Actually honor the -d argument and make sure test works

parent 40998e10
...@@ -64,7 +64,8 @@ class PackerTests(StorageTestBase): ...@@ -64,7 +64,8 @@ class PackerTests(StorageTestBase):
self.set_inet_addr() self.set_inet_addr()
self.start() self.start()
os.system("zeopack.py -h %s -p %s -d 1" % (self.host, self.port)) os.system("zeopack.py -h %s -p %s -d 1" % (self.host, self.port))
assert os.path.exists(self.path + ".old") # Since we specified one day, nothing should get packed
assert not os.path.exists(self.path + ".old")
def testAF_UNIXPack(self): def testAF_UNIXPack(self):
self.addr = tempfile.mktemp(suffix=".zeo-socket") self.addr = tempfile.mktemp(suffix=".zeo-socket")
......
...@@ -27,7 +27,7 @@ def main(addr, storage, days): ...@@ -27,7 +27,7 @@ def main(addr, storage, days):
# is called. The only thing we care about, though, is that # is called. The only thing we care about, though, is that
# registerDB() calls _startup(). # registerDB() calls _startup().
cs._startup() cs._startup()
cs.pack(wait=1, days=0) cs.pack(wait=1, days=days)
def usage(exit=1): def usage(exit=1):
print __doc__ print __doc__
......
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