diff options
author | Olivier Tilloy <olivier@tilloy.net> | 2010-04-14 12:04:23 +0200 |
---|---|---|
committer | Olivier Tilloy <olivier@tilloy.net> | 2010-04-14 12:04:23 +0200 |
commit | e6c641481f5f0485ccc8d76e7b1f3ca095771cde (patch) | |
tree | 5da2dc2ea97d72ea4ecb35ba27639f4a75d70c4b | |
parent | 21b0124ed55537a9640dc21fbedfb644cd269ab5 (diff) | |
download | pyexiv2-e6c641481f5f0485ccc8d76e7b1f3ca095771cde.tar.gz |
Return the test runner's result.
-rw-r--r-- | SConstruct | 2 | ||||
-rwxr-xr-x | test/TestsRunner.py | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -31,7 +31,7 @@ def run_tests(): # FIXME: this is not really well integrated as scons is not informed # whether the unit tests passed or failed. # http://www.scons.org/wiki/UnitTests may be of use. - run_unit_tests() + result = run_unit_tests() if not BUILD_TARGETS: # Default target: lib diff --git a/test/TestsRunner.py b/test/TestsRunner.py index 351dbbc..ac9f2d3 100755 --- a/test/TestsRunner.py +++ b/test/TestsRunner.py @@ -54,7 +54,7 @@ def run_unit_tests(): suite.addTest(unittest.defaultTestLoader.loadTestsFromTestCase(TestBuffer)) suite.addTest(unittest.defaultTestLoader.loadTestsFromTestCase(TestEncodings)) # Run the test suite - unittest.TextTestRunner(verbosity=2).run(suite) + return unittest.TextTestRunner(verbosity=2).run(suite) if __name__ == '__main__': |