Code Review
/
yardstick.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
fix exit status at SLA assertion
[yardstick.git]
/
yardstick
/
benchmark
/
runners
/
base.py
diff --git
a/yardstick/benchmark/runners/base.py
b/yardstick/benchmark/runners/base.py
index
59ec473
..
38ca34f
100644
(file)
--- a/
yardstick/benchmark/runners/base.py
+++ b/
yardstick/benchmark/runners/base.py
@@
-74,6
+74,15
@@
class Runner(object):
Runner.queue.put('_TERMINATE_')
Runner.dump_process.join()
Runner.queue.put('_TERMINATE_')
Runner.dump_process.join()
+ @staticmethod
+ def terminate_all():
+ '''Terminate all runners (subprocesses)'''
+ log.debug("Terminating all runners")
+ for runner in Runner.runners:
+ runner.process.terminate()
+ runner.process.join()
+ Runner.release(runner)
+
def __init__(self, config, queue):
self.context = {}
self.config = config
def __init__(self, config, queue):
self.context = {}
self.config = config
@@
-92,3
+101,4
@@
class Runner(object):
def join(self):
self.process.join()
def join(self):
self.process.join()
+ return self.process.exitcode