From 5bb478ad6b8f9248aebd2ecca785681cebf6684c Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 8 Dec 2006 18:34:56 +0000 Subject: Indicate test failure with an exit code. svn path=/main/trunk/; revision=5227 --- tests/runTests | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/runTests') 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) -- cgit v1.2.3-1-g7c22