Skip to content
Snippets Groups Projects
Commit f7b7c893 authored by Craig Tiller's avatar Craig Tiller
Browse files

Dont do nothing for eternity

parent 8222b19e
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.
Please register or to comment