We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdfa984 commit 3b0bc51Copy full SHA for 3b0bc51
run_tests.py
@@ -73,7 +73,7 @@
73
test_loaded = unittest.TestLoader().loadTestsFromTestCase(test_case)
74
test_suite.addTest(test_loaded)
75
76
- unittest.TextTestRunner(verbosity=2).run(test_suite)
+ result = unittest.TextTestRunner(verbosity=2).run(test_suite)
77
78
if args.reset and os.path.isfile(FAILED_FILE):
79
sep_str = " : "
@@ -88,3 +88,5 @@
88
sys.stdout.write(result_line)
89
90
os.remove(FAILED_FILE)
91
+
92
+ sys.exit(0 if result.wasSuccessful() else 1)
0 commit comments