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
Kirill Smelkov
ZODB
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
Show 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
# Some simple tests for zeopack.py
# For this to work, zeopack.py must by on your PATH.
# For this to work, zeopack.py must by on your PATH.
...
@@ -9,6 +10,8 @@ import ZODB
...
@@ -9,6 +10,8 @@ import ZODB
import
os
import
os
import
socket
import
socket
import
tempfile
import
tempfile
import
threading
import
time
import
unittest
import
unittest
# XXX The forker interface isn't clearly defined. It's different on
# XXX The forker interface isn't clearly defined. It's different on
...
@@ -47,7 +50,8 @@ class PackerTests(StorageTestBase):
...
@@ -47,7 +50,8 @@ class PackerTests(StorageTestBase):
try
:
try
:
os
.
waitpid
(
self
.
pid
,
0
)
os
.
waitpid
(
self
.
pid
,
0
)
except
os
.
error
,
err
:
except
os
.
error
,
err
:
print
err
##print "waitpid failed", err
pass
for
ext
in
''
,
'.old'
,
'.lock'
,
'.index'
,
'.tmp'
:
for
ext
in
''
,
'.old'
,
'.lock'
,
'.index'
,
'.tmp'
:
path
=
self
.
path
+
ext
path
=
self
.
path
+
ext
try
:
try
:
...
@@ -87,6 +91,19 @@ class PackerTests(StorageTestBase):
...
@@ -87,6 +91,19 @@ class PackerTests(StorageTestBase):
status
=
os
.
system
(
"zeopack.py -p 19"
)
status
=
os
.
system
(
"zeopack.py -p 19"
)
assert
status
!=
0
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
):
class
UpTest
(
unittest
.
TestCase
):
def
testUp
(
self
):
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