Skip to content

Commit 3b0bc51

Browse files
committed
test: propagate test fails to github workflow
1 parent cdfa984 commit 3b0bc51

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

run_tests.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
test_loaded = unittest.TestLoader().loadTestsFromTestCase(test_case)
7474
test_suite.addTest(test_loaded)
7575

76-
unittest.TextTestRunner(verbosity=2).run(test_suite)
76+
result = unittest.TextTestRunner(verbosity=2).run(test_suite)
7777

7878
if args.reset and os.path.isfile(FAILED_FILE):
7979
sep_str = " : "
@@ -88,3 +88,5 @@
8888
sys.stdout.write(result_line)
8989

9090
os.remove(FAILED_FILE)
91+
92+
sys.exit(0 if result.wasSuccessful() else 1)

0 commit comments

Comments
 (0)