Commit edc450d8 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Only display stats and check maximum global average when there is no error

parent cee58353
...@@ -106,20 +106,21 @@ class BenchmarkProcess(multiprocessing.Process): ...@@ -106,20 +106,21 @@ class BenchmarkProcess(multiprocessing.Process):
self._logger.warning(msg) self._logger.warning(msg)
for stat in result.getCurrentSuiteStatList(): else:
mean = stat.mean for stat in result.getCurrentSuiteStatList():
mean = stat.mean
self._logger.info("%s: min=%.3f, mean=%.3f (+/- %.3f), max=%.3f" % \
(stat.full_label, self._logger.info("%s: min=%.3f, mean=%.3f (+/- %.3f), max=%.3f" % \
stat.minimum, (stat.full_label,
mean, stat.minimum,
stat.standard_deviation, mean,
stat.maximum)) stat.standard_deviation,
stat.maximum))
if (self._argument_namespace.max_global_average and
mean > self._argument_namespace.max_global_average): if (self._argument_namespace.max_global_average and
raise RuntimeError("Stopping as mean is greater than maximum " mean > self._argument_namespace.max_global_average):
"global average") raise RuntimeError("Stopping as mean is greater than maximum "
"global average")
result.exitSuite() result.exitSuite()
......
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