summaryrefslogtreecommitdiffstats
path: root/tests/runTests
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-12-08 18:34:56 +0000
committerZac Medico <zmedico@gentoo.org>2006-12-08 18:34:56 +0000
commit5bb478ad6b8f9248aebd2ecca785681cebf6684c (patch)
tree982d8de5202d7886517bc623bf6ea81a02fa3158 /tests/runTests
parentb71070083b3e9633105c4f87bfb06e506c697dd2 (diff)
downloadportage-5bb478ad6b8f9248aebd2ecca785681cebf6684c.tar.gz
portage-5bb478ad6b8f9248aebd2ecca785681cebf6684c.tar.bz2
portage-5bb478ad6b8f9248aebd2ecca785681cebf6684c.zip
Indicate test failure with an exit code.
svn path=/main/trunk/; revision=5227
Diffstat (limited to 'tests/runTests')
-rwxr-xr-xtests/runTests6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/runTests b/tests/runTests
index 74b853f09..fed58f75d 100755
--- a/tests/runTests
+++ b/tests/runTests
@@ -16,5 +16,7 @@ sys.path.insert(0,'../pym')
sys.path.insert(0, osp.dirname(osp.dirname(osp.abspath(__file__))))
import tests
-
-tests.main()
+if __name__ == "__main__":
+ result = tests.main()
+ if result.failures:
+ sys.exit(1)