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:
Chris Sosa 2011-01-27 11:18:25 -08:00
parent 95e56d1ca2
commit 6e79ebeaa1

View File

@ -912,8 +912,9 @@ def _RunTestsInParallel(parser, options, test_class):
args.append(test_case) args.append(test_case)
results = _RunParallelJobs(options.jobs, threads, args, print_status=False) results = _RunParallelJobs(options.jobs, threads, args, print_status=False)
if not (test_result.wasSuccessful() for test_result in results): for test_result in results:
Die('Test harness was not successful') if not test_result.wasSuccessful():
Die('Test harness was not successful')
def main(): def main():