Commit 62e0818b authored by Thibault Hallouin's avatar Thibault Hallouin
Browse files

add explicit exit code 1 if tests fail

No related merge requests found
Pipeline #37542 passed with stage
in 1 minute and 52 seconds
Showing with 12 additions and 3 deletions
+12 -3
......@@ -11,4 +11,7 @@ if __name__ == '__main__':
test_suite.addTests(all_tests)
runner = unittest.TextTestRunner(verbosity=2)
runner.run(test_suite)
result = runner.run(test_suite)
if not result.wasSuccessful():
exit(1)
......@@ -99,4 +99,7 @@ if __name__ == '__main__':
)
runner = unittest.TextTestRunner(verbosity=2)
runner.run(test_suite)
result = runner.run(test_suite)
if not result.wasSuccessful():
exit(1)
......@@ -100,4 +100,7 @@ if __name__ == '__main__':
)
runner = unittest.TextTestRunner(verbosity=2)
runner.run(test_suite)
result = runner.run(test_suite)
if not result.wasSuccessful():
exit(1)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment