diff options
Diffstat (limited to 'tests/runtests.py')
| -rwxr-xr-x | tests/runtests.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/runtests.py b/tests/runtests.py index 840c06321d..be1760e693 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -355,22 +355,22 @@ def bisect_tests(bisection_label, options, test_labels, parallel, start_at, star test_labels_b = test_labels[midpoint:] + [bisection_label] print('***** Pass %da: Running the first half of the test suite' % iteration) print('***** Test labels: %s' % ' '.join(test_labels_a)) - failures_a = subprocess.call(subprocess_args + test_labels_a) + failures_a = subprocess.run(subprocess_args + test_labels_a) print('***** Pass %db: Running the second half of the test suite' % iteration) print('***** Test labels: %s' % ' '.join(test_labels_b)) print('') - failures_b = subprocess.call(subprocess_args + test_labels_b) + failures_b = subprocess.run(subprocess_args + test_labels_b) - if failures_a and not failures_b: + if failures_a.returncode and not failures_b.returncode: print("***** Problem found in first half. Bisecting again...") iteration += 1 test_labels = test_labels_a[:-1] - elif failures_b and not failures_a: + elif failures_b.returncode and not failures_a.returncode: print("***** Problem found in second half. Bisecting again...") iteration += 1 test_labels = test_labels_b[:-1] - elif failures_a and failures_b: + elif failures_a.returncode and failures_b.returncode: print("***** Multiple sources of failure found") break else: |
