Commit 5e34eb60 authored by Ryan Herbert's avatar Ryan Herbert
Browse files exit with representative code

We want our testRunner script to exit with an error code if tests
failed for gitlab-ci
parent 2cc87aee
Pipeline #18359 failed with stages
in 31 seconds
...@@ -330,4 +330,6 @@ for test_file in test_files: ...@@ -330,4 +330,6 @@ for test_file in test_files:
suite.addTest(unittest.makeSuite(globals()[filename+directory])) suite.addTest(unittest.makeSuite(globals()[filename+directory]))
#unittest.TextTestRunner(verbosity=2).run(suite) #unittest.TextTestRunner(verbosity=2).run(suite)
xmlrunner.XMLTestRunner(output='test-reports', verbosity=1).run(suite) result = xmlrunner.XMLTestRunner(output='test-reports', verbosity=1).run(suite)
sys.exit(not result.wasSuccessful())
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