mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
More debugging for unittest hang
This commit is contained in:
parent
2de9e40eee
commit
bc30dbbdb4
@ -330,8 +330,9 @@ def run_test(test_name, verbosity=4, buffer=False):
|
||||
|
||||
def run_cli(suite, verbosity=4, buffer=True):
|
||||
r = unittest.TextTestRunner
|
||||
r.resultclass = unittest.TextTestResult if verbosity < 2 else TestResult
|
||||
# r.resultclass = unittest.TextTestResult if verbosity < 2 else TestResult
|
||||
init_env()
|
||||
result = r(verbosity=verbosity, buffer=buffer and not is_ci).run(suite)
|
||||
if not result.wasSuccessful():
|
||||
raise SystemExit(1)
|
||||
print(111111111, result, flush=True)
|
||||
rc = 0 if result.wasSuccessful() else 1
|
||||
os._exit(rc)
|
||||
|
Loading…
x
Reference in New Issue
Block a user