summaryrefslogtreecommitdiff
path: root/test/GenerateTests.py
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-22 03:10:19 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-22 03:10:19 -0400
commit7da270129547aebd84ac0fde63b796f8add8e89a (patch)
tree527981b9a420d9e1fdc8336cba23b603e589facc /test/GenerateTests.py
parent81bf38584e43e5fc31e316246f11e210418548a9 (diff)
downloadfork-ledger-7da270129547aebd84ac0fde63b796f8add8e89a.tar.gz
fork-ledger-7da270129547aebd84ac0fde63b796f8add8e89a.tar.bz2
fork-ledger-7da270129547aebd84ac0fde63b796f8add8e89a.zip
Regression and generate tests now fail properly
Diffstat (limited to 'test/GenerateTests.py')
-rwxr-xr-xtest/GenerateTests.py5
1 files changed, 4 insertions, 1 deletions
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()