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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
7eedfd75
Commit
7eedfd75
authored
Aug 05, 2016
by
Jim Fulton
Committed by
GitHub
Aug 05, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #65 from zopefoundation/travis-caching
try caching again, off on a separate branch.
parents
d9ef8853
0fafa40a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
12 deletions
+20
-12
.travis.yml
.travis.yml
+3
-0
src/ZEO/tests/forker.py
src/ZEO/tests/forker.py
+17
-12
No files found.
.travis.yml
View file @
7eedfd75
...
@@ -26,6 +26,9 @@ matrix:
...
@@ -26,6 +26,9 @@ matrix:
install
:
install
:
-
pip install zc.buildout
-
pip install zc.buildout
-
buildout
-
buildout
cache
:
directories
:
-
eggs
script
:
script
:
-
bin/test -v1j99
-
bin/test -v1j99
notifications
:
notifications
:
...
...
src/ZEO/tests/forker.py
View file @
7eedfd75
...
@@ -166,9 +166,16 @@ def runner(config, qin, qout, timeout=None,
...
@@ -166,9 +166,16 @@ def runner(config, qin, qout, timeout=None,
ZEO
.
asyncio
.
server
.
best_protocol_version
=
old_protocol
ZEO
.
asyncio
.
server
.
best_protocol_version
=
old_protocol
ZEO
.
asyncio
.
server
.
ServerProtocol
.
protocols
=
old_protocols
ZEO
.
asyncio
.
server
.
ServerProtocol
.
protocols
=
old_protocols
def
stop_runner
(
thread
,
config
,
qin
,
qout
,
stop_timeout
=
9
,
pid
=
None
):
def
stop_runner
(
thread
,
config
,
qin
,
qout
,
stop_timeout
=
1
9
,
pid
=
None
):
qin
.
put
(
'stop'
)
qin
.
put
(
'stop'
)
try
:
dirty
=
qout
.
get
(
timeout
=
stop_timeout
)
dirty
=
qout
.
get
(
timeout
=
stop_timeout
)
except
Empty
:
print
(
"WARNING Couldn't stop server"
,
file
=
sys
.
stderr
)
if
hasattr
(
thread
,
'terminate'
):
thread
.
terminate
()
os
.
waitpid
(
thread
.
pid
,
0
)
else
:
if
dirty
:
if
dirty
:
print
(
"WARNING SERVER DIDN'T STOP CLEANLY"
,
file
=
sys
.
stderr
)
print
(
"WARNING SERVER DIDN'T STOP CLEANLY"
,
file
=
sys
.
stderr
)
...
@@ -176,13 +183,11 @@ def stop_runner(thread, config, qin, qout, stop_timeout=9, pid=None):
...
@@ -176,13 +183,11 @@ def stop_runner(thread, config, qin, qout, stop_timeout=9, pid=None):
# give it some time to exit
# give it some time to exit
if
hasattr
(
thread
,
'pid'
)
and
thread
.
pid
:
if
hasattr
(
thread
,
'pid'
)
and
thread
.
pid
:
os
.
waitpid
(
thread
.
pid
,
0
)
os
.
waitpid
(
thread
.
pid
,
0
)
else
:
# Gaaaa, force gc in hopes of maybe getting the unclosed
# sockets to get GCed
gc
.
collect
()
thread
.
join
(
stop_timeout
)
thread
.
join
(
stop_timeout
)
gc
.
collect
()
def
start_zeo_server
(
storage_conf
=
None
,
zeo_conf
=
None
,
port
=
None
,
keep
=
False
,
def
start_zeo_server
(
storage_conf
=
None
,
zeo_conf
=
None
,
port
=
None
,
keep
=
False
,
path
=
'Data.fs'
,
protocol
=
None
,
blob_dir
=
None
,
path
=
'Data.fs'
,
protocol
=
None
,
blob_dir
=
None
,
suicide
=
True
,
debug
=
False
,
suicide
=
True
,
debug
=
False
,
...
...
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