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
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
Xavier Thompson
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
Show 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,14 +361,23 @@ class NEOCluster(object):
...
@@ -361,14 +361,23 @@ 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
error_list
=
[]
for
process
in
stopped_list
:
try
:
process
.
kill
(
signal
.
SIGKILL
)
process
.
wait
()
except
NodeProcessError
,
e
:
except
NodeProcessError
,
e
:
error_list
+=
e
.
args
error_list
+=
e
.
args
if
clients
:
if
clients
:
...
...
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