mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Replaced subprocess commands by run() wherever possible.
This commit is contained in:
committed by
Carlton Gibson
parent
7bd9633320
commit
9386586f31
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user