Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZEO
Commits
6611b45c
Commit
6611b45c
authored
Jan 30, 2002
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test of -W option
parent
472fcada
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
src/scripts/tests/testzeopack.py
src/scripts/tests/testzeopack.py
+18
-1
No files found.
src/scripts/tests/testzeopack.py
View file @
6611b45c
from
__future__
import
nested_scopes
# Some simple tests for zeopack.py
# For this to work, zeopack.py must by on your PATH.
...
...
@@ -9,6 +10,8 @@ import ZODB
import
os
import
socket
import
tempfile
import
threading
import
time
import
unittest
# XXX The forker interface isn't clearly defined. It's different on
...
...
@@ -47,7 +50,8 @@ class PackerTests(StorageTestBase):
try
:
os
.
waitpid
(
self
.
pid
,
0
)
except
os
.
error
,
err
:
print
err
##print "waitpid failed", err
pass
for
ext
in
''
,
'.old'
,
'.lock'
,
'.index'
,
'.tmp'
:
path
=
self
.
path
+
ext
try
:
...
...
@@ -87,6 +91,19 @@ class PackerTests(StorageTestBase):
status
=
os
.
system
(
"zeopack.py -p 19"
)
assert
status
!=
0
def
testWaitForServer
(
self
):
self
.
set_inet_addr
()
def
delayed_start
():
time
.
sleep
(
11
)
self
.
start
()
t
=
threading
.
Thread
(
target
=
delayed_start
)
t
.
start
()
status
=
os
.
system
(
"zeopack.py -h %s -p %s -W"
%
(
self
.
host
,
self
.
port
))
t
.
join
()
assert
status
==
0
assert
os
.
path
.
exists
(
self
.
path
+
".old"
)
class
UpTest
(
unittest
.
TestCase
):
def
testUp
(
self
):
...
...
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