Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZODB
Commits
db22e4cc
Commit
db22e4cc
authored
Jan 30, 2002
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Actually honor the -d argument and make sure test works
parent
40998e10
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
src/scripts/tests/testzeopack.py
src/scripts/tests/testzeopack.py
+2
-1
src/scripts/zeopack.py
src/scripts/zeopack.py
+1
-1
No files found.
src/scripts/tests/testzeopack.py
View file @
db22e4cc
...
@@ -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"
)
...
...
src/scripts/zeopack.py
View file @
db22e4cc
...
@@ -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__
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment