aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier@tilloy.net>2010-04-14 12:04:23 +0200
committerOlivier Tilloy <olivier@tilloy.net>2010-04-14 12:04:23 +0200
commite6c641481f5f0485ccc8d76e7b1f3ca095771cde (patch)
tree5da2dc2ea97d72ea4ecb35ba27639f4a75d70c4b
parent21b0124ed55537a9640dc21fbedfb644cd269ab5 (diff)
downloadpyexiv2-e6c641481f5f0485ccc8d76e7b1f3ca095771cde.tar.gz
Return the test runner's result.
-rw-r--r--SConstruct2
-rwxr-xr-xtest/TestsRunner.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct
index f3e9702..05393a7 100644
--- a/SConstruct
+++ b/SConstruct
@@ -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__':