From a69cd37fa240135eef2abd5f8a86760d3a0e9a15 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 12 Feb 2011 17:07:51 -0500 Subject: Corrected regression test output --- test/GenerateTests.py | 2 +- test/RegressTests.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/GenerateTests.py b/test/GenerateTests.py index 79c7ae04..2e956db0 100755 --- a/test/GenerateTests.py +++ b/test/GenerateTests.py @@ -138,7 +138,7 @@ else: pool = None if pool: - harness.failed = sum(pool.map(run_gen_test, range(beg_range, end_range))) + pool.map(run_gen_test, range(beg_range, end_range)) else: for i in range(beg_range, end_range): run_gen_test(i) diff --git a/test/RegressTests.py b/test/RegressTests.py index 2d8ef8e8..b668e51f 100755 --- a/test/RegressTests.py +++ b/test/RegressTests.py @@ -85,7 +85,7 @@ class RegressFile(object): test['command'] = self.transform_line(line) line = self.fd.readline() - return None + return test['command'] and test def run_test(self, test): use_stdin = False @@ -180,9 +180,9 @@ if __name__ == '__main__': tests = [os.path.join(tests, x) for x in os.listdir(tests) if x.endswith('.test')] if pool: - harness.failed = sum(pool.map(do_test, tests, 1)) + pool.map(do_test, tests, 1) else: - harness.failed = sum(map(do_test, tests)) + map(do_test, tests) else: entry = RegressFile(tests) entry.run_tests() -- cgit v1.2.3