Commit 4e61a570 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Only RuntimeError are raised by the module and already logged and fix a typo

for flushing the results
parent 297fe7c8
...@@ -140,17 +140,23 @@ class BenchmarkProcess(multiprocessing.Process): ...@@ -140,17 +140,23 @@ class BenchmarkProcess(multiprocessing.Process):
while self._current_repeat != (self._argument_namespace.repeat + 1): while self._current_repeat != (self._argument_namespace.repeat + 1):
self._logger.info("Iteration: %d" % self._current_repeat) self._logger.info("Iteration: %d" % self._current_repeat)
self.runBenchmarkSuiteList(result) self.runBenchmarkSuiteList(result)
self._current_repeat += 1
if not self._current_repeat % RESULT_NUMBER_BEFORE_FLUSHING: if not self._current_repeat % RESULT_NUMBER_BEFORE_FLUSHING:
result.flush() result.flush()
self._current_repeat += 1
except StopIteration, e: except StopIteration, e:
self._logger.error(e) self._logger.error(e)
except BaseException, e: except RuntimeError, e:
exit_msg = str(e) exit_msg = str(e)
exit_status = 1 exit_status = 1
except BaseException, e:
exit_msg = traceback.format_exc()
self._logger.error(exit_msg)
exit_status = 2
self._exit_msg_queue.put(exit_msg) self._exit_msg_queue.put(exit_msg)
sys.exit(exit_status) sys.exit(exit_status)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment