From 7da270129547aebd84ac0fde63b796f8add8e89a Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 22 Jun 2010 03:10:19 -0400 Subject: Regression and generate tests now fail properly --- test/GenerateTests.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/GenerateTests.py') diff --git a/test/GenerateTests.py b/test/GenerateTests.py index 70baee28..61c31f5d 100755 --- a/test/GenerateTests.py +++ b/test/GenerateTests.py @@ -130,6 +130,7 @@ def run_gen_test(i): harness.success() else: harness.failure() + return harness.failed if multiproc: pool = Pool(jobs*2) @@ -137,7 +138,8 @@ else: pool = None if pool: - pool.map(run_gen_test, range(beg_range, end_range)) + harness.failed = sum(pool.map(run_gen_test, + range(beg_range, end_range))) else: for i in range(beg_range, end_range): run_gen_test(i) @@ -145,4 +147,5 @@ else: if pool: pool.close() pool.join() + harness.exit() -- cgit v1.2.3