summaryrefslogtreecommitdiff
path: root/tests/runtests.py
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2019-08-23 10:53:36 +0200
committerCarlton Gibson <carlton.gibson@noumenal.es>2019-08-23 10:53:36 +0200
commit9386586f31b8a0bccf59a1bff647cd829d4e79aa (patch)
treef28bf4c9b8b0a1431c1b6722f9d5bb613d78040f /tests/runtests.py
parent7bd963332017eace00be8caf7dc1b7b304da613a (diff)
downloaddjango-9386586f31b8a0bccf59a1bff647cd829d4e79aa.tar.gz
Replaced subprocess commands by run() wherever possible.
Diffstat (limited to 'tests/runtests.py')
-rwxr-xr-xtests/runtests.py10
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: