mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Exit code should be 1 when some tests fail
This commit is contained in:
parent
321a883c41
commit
5f59d1b8b7
@ -120,4 +120,6 @@ def run_cli(suite, verbosity=4):
|
|||||||
r = unittest.TextTestRunner
|
r = unittest.TextTestRunner
|
||||||
r.resultclass = unittest.TextTestResult if verbosity < 2 else TestResult
|
r.resultclass = unittest.TextTestResult if verbosity < 2 else TestResult
|
||||||
init_env()
|
init_env()
|
||||||
r(verbosity=verbosity).run(suite)
|
result = r(verbosity=verbosity).run(suite)
|
||||||
|
if not result.wasSuccessful():
|
||||||
|
raise SystemExit(1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user