mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 14:41:31 +02:00
Actually die if a parallel test fails.
Change-Id: I24b498fffb7e7ce54517945730c91fecd1d57586 BUG=chromium-os:10723 TEST=Ran it and killed a test Review URL: http://codereview.chromium.org/6260023
This commit is contained in:
parent
95e56d1ca2
commit
6e79ebeaa1
@ -912,8 +912,9 @@ def _RunTestsInParallel(parser, options, test_class):
|
||||
args.append(test_case)
|
||||
|
||||
results = _RunParallelJobs(options.jobs, threads, args, print_status=False)
|
||||
if not (test_result.wasSuccessful() for test_result in results):
|
||||
Die('Test harness was not successful')
|
||||
for test_result in results:
|
||||
if not test_result.wasSuccessful():
|
||||
Die('Test harness was not successful')
|
||||
|
||||
|
||||
def main():
|
||||
|
Loading…
x
Reference in New Issue
Block a user