Commit 2b2bc8db authored by Arnaud Fontaine's avatar Arnaud Fontaine

Fix --max-errors script parameter.

It should be set according the number of repeats and benchmark suites if the
number of errors is greater to report errors properly to the control process.
parent 0f6ed2c0
......@@ -153,6 +153,11 @@ class PerformanceTester(object):
object_benchmark_suite_list.append(ArgumentType.objectFromModule(benchmark_suite,
callable_object=True))
if namespace.repeat > 0:
namespace.max_error_number = \
min(len(namespace.benchmark_suite_list) * namespace.repeat,
namespace.max_error_number)
namespace.benchmark_suite_name_list = namespace.benchmark_suite_list
namespace.benchmark_suite_list = object_benchmark_suite_list
......
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