Use non-zero exit code if tests fail (#265)

pull/277/head
Luna Nova 2 years ago committed by GitHub
parent 43731875ad
commit e316c6f36c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -36,7 +36,6 @@ if __name__ == "__main__":
import tests.test
tests.test.main()
sys.exit(0)
import shutil
import time
@ -689,4 +688,5 @@ def main():
print()
unittest.TextTestResult.startTest = start_test
unittest.TextTestRunner(verbosity=2).run(testsuite)
result = unittest.TextTestRunner(verbosity=2).run(testsuite)
sys.exit(not result.wasSuccessful())

Loading…
Cancel
Save