Skip to content
Snippets Groups Projects
Commit b5359b5f authored by David Garcia Quintas's avatar David Garcia Quintas
Browse files

added assert against combining -p and -n

parent 95b37b7d
No related branches found
No related tags found
No related merge requests found
......@@ -1462,6 +1462,8 @@ def _build_and_run(
if not isclose(args.sample_percent, 100.0):
print("Running %d tests out of %d (~%d%%)" %
(sample_size, num_jobs, args.sample_percent))
else:
assert args.runs_per_test == 1, "Can't do sampling (-p) over multiple runs (-n)."
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
......
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