Fix bug with finite runs per test

pull/1865/head
Craig Tiller 10 years ago
parent 795b242251
commit 50e53e27d5
  1. 1
      tools/run_tests/run_tests.py

@ -346,6 +346,7 @@ def runs_per_test_type(arg_str):
try: try:
n = int(arg_str) n = int(arg_str)
if n <= 0: raise ValueError if n <= 0: raise ValueError
return n
except: except:
msg = "'{}' isn't a positive integer or 'inf'".format(arg_str) msg = "'{}' isn't a positive integer or 'inf'".format(arg_str)
raise argparse.ArgumentTypeError(msg) raise argparse.ArgumentTypeError(msg)

Loading…
Cancel
Save