mirror of
https://github.com/fergalmoran/picard.git
synced 2026-03-06 21:35:09 +00:00
Returns exit code 1 if at least one test failed.
It should make travis-ci to report test failures when they actually fail. Ie. build 169.1 has test failures, but build was happily reported as Passed, this patch should change this.
This commit is contained in:
4
setup.py
4
setup.py
@@ -99,7 +99,9 @@ class picard_test(Command):
|
||||
|
||||
tests = unittest.defaultTestLoader.loadTestsFromNames(names)
|
||||
t = unittest.TextTestRunner(verbosity=self.verbosity)
|
||||
t.run(tests)
|
||||
testresult = t.run(tests)
|
||||
if not testresult.wasSuccessful():
|
||||
raise SystemExit("At least one test failed.")
|
||||
|
||||
|
||||
class picard_build_locales(Command):
|
||||
|
||||
Reference in New Issue
Block a user