Skip to content
Snippets Groups Projects
Commit 6b3cb2a7 authored by David G. Quintas's avatar David G. Quintas
Browse files

Merge pull request #2168 from ctiller/dont-do-nothing-infinite-times

Dont do nothing for eternity
parents 1a256bd6 f7b7c893
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment