Fixed #27423 -- Simplified sys.exit() for indicating test failures.
This commit is contained in:
parent
3158695365
commit
bafc9f9c33
|
@ -61,4 +61,4 @@ class Command(BaseCommand):
|
|||
failures = test_runner.run_tests(test_labels)
|
||||
|
||||
if failures:
|
||||
sys.exit(bool(failures))
|
||||
sys.exit(1)
|
||||
|
|
|
@ -483,4 +483,4 @@ if __name__ == "__main__":
|
|||
options.exclude_tags,
|
||||
)
|
||||
if failures:
|
||||
sys.exit(bool(failures))
|
||||
sys.exit(1)
|
||||
|
|
Loading…
Reference in New Issue