Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
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
neoppod
Commits
531a7df7
Commit
531a7df7
authored
Aug 27, 2012
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not waste too much file system space when running tests
parent
2553b1c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
neo/tests/functional/__init__.py
neo/tests/functional/__init__.py
+14
-5
No files found.
neo/tests/functional/__init__.py
View file @
531a7df7
...
@@ -361,16 +361,25 @@ class NEOCluster(object):
...
@@ -361,16 +361,25 @@ class NEOCluster(object):
raise
AssertionError
(
'Timeout when starting cluster'
)
raise
AssertionError
(
'Timeout when starting cluster'
)
def
stop
(
self
,
clients
=
True
):
def
stop
(
self
,
clients
=
True
):
error_list
=
[]
# Suspend all processes to kill before actually killing them, so that
# nodes don't log errors because they get disconnected from other nodes:
# otherwise, storage nodes would often flush MB of logs just because we
# killed the master first, and waste much file system space.
stopped_list
=
[]
for
process_list
in
self
.
process_dict
.
itervalues
():
for
process_list
in
self
.
process_dict
.
itervalues
():
for
process
in
process_list
:
for
process
in
process_list
:
try
:
try
:
process
.
kill
(
signal
.
SIG
KILL
)
process
.
kill
(
signal
.
SIG
STOP
)
process
.
wait
(
)
stopped_list
.
append
(
process
)
except
AlreadyStopped
:
except
AlreadyStopped
:
pass
pass
except
NodeProcessError
,
e
:
error_list
=
[]
error_list
+=
e
.
args
for
process
in
stopped_list
:
try
:
process
.
kill
(
signal
.
SIGKILL
)
process
.
wait
()
except
NodeProcessError
,
e
:
error_list
+=
e
.
args
if
clients
:
if
clients
:
for
zodb_storage
in
self
.
zodb_storage_list
:
for
zodb_storage
in
self
.
zodb_storage_list
:
zodb_storage
.
close
()
zodb_storage
.
close
()
...
...
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