diff options
author | 2015-06-22 14:33:25 -0700 | |
---|---|---|
committer | 2015-06-22 14:48:46 -0700 | |
commit | f7b7c89351da0c2cfd7a13ce556737e68d0312fa (patch) | |
tree | ac3cec1d7696540aee7e60ad83990b34b848ff11 /tools | |
parent | 8222b19eb14273df8124cb5f46f629836e72f6ad (diff) |
Dont do nothing for eternity
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/run_tests/run_tests.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/run_tests/run_tests.py b/tools/run_tests/run_tests.py index b17e1ecbc0..5ed70f0b7e 100755 --- a/tools/run_tests/run_tests.py +++ b/tools/run_tests/run_tests.py @@ -513,6 +513,8 @@ def _build_and_run(check_cancelled, newline_on_success, travis, cache): # chance to run. massaged_one_run = list(one_run) # random.shuffle needs an indexable seq. random.shuffle(massaged_one_run) # which it modifies in-place. + if infinite_runs: + assert len(massaged_one_run) > 0, 'Must have at least one test for a -n inf run' runs_sequence = (itertools.repeat(massaged_one_run) if infinite_runs else itertools.repeat(massaged_one_run, runs_per_test)) all_runs = itertools.chain.from_iterable(runs_sequence) |