mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-07-26 13:47:40 +00:00
system-tests: abort on failure
This commit is contained in:
@@ -50,6 +50,7 @@ def run(include_long_tests=False, capture_results=False, tests=None, filters=Non
|
|||||||
if not coverage_dir:
|
if not coverage_dir:
|
||||||
coverage_dir = mkdtemp(suffix="aptly-coverage")
|
coverage_dir = mkdtemp(suffix="aptly-coverage")
|
||||||
|
|
||||||
|
failed = False
|
||||||
for test in tests:
|
for test in tests:
|
||||||
orig_stdout = sys.stdout
|
orig_stdout = sys.stdout
|
||||||
orig_stderr = sys.stderr
|
orig_stderr = sys.stderr
|
||||||
@@ -157,8 +158,15 @@ def run(include_long_tests=False, capture_results=False, tests=None, filters=Non
|
|||||||
|
|
||||||
t.shutdown()
|
t.shutdown()
|
||||||
|
|
||||||
|
if failed:
|
||||||
|
break
|
||||||
|
if failed:
|
||||||
|
break
|
||||||
|
|
||||||
sys.stdout = orig_stdout
|
sys.stdout = orig_stdout
|
||||||
sys.stderr = orig_stderr
|
sys.stderr = orig_stderr
|
||||||
|
if failed:
|
||||||
|
break
|
||||||
|
|
||||||
if lastBase is not None:
|
if lastBase is not None:
|
||||||
lastBase.shutdown_class()
|
lastBase.shutdown_class()
|
||||||
|
|||||||
Reference in New Issue
Block a user