[cig-commits] commit: Added a call to sys.exit with the corresponding error code based on the failed count.

Mercurial hg at geodynamics.org
Tue Mar 23 10:34:38 PDT 2010


changeset:   405:733cc4fa5e3d
branch:      1.4.x
user:        JericoRevote
date:        Tue Feb 16 15:41:55 2010 +1100
files:       SysTest/RegressionTests/testAll.py
description:
Added a call to sys.exit with the corresponding error code based on the failed count.


diff -r e8ddecc5f193 -r 733cc4fa5e3d SysTest/RegressionTests/testAll.py
--- a/SysTest/RegressionTests/testAll.py	Thu Feb 18 11:50:42 2010 +1100
+++ b/SysTest/RegressionTests/testAll.py	Tue Feb 16 15:41:55 2010 +1100
@@ -45,5 +45,9 @@ def runTests():
     print message
     FILE.close()
 
+    if failed > 0:
+        sys.exit(1)
+    else:
+        sys.exit(0)
 
 runTests()



More information about the CIG-COMMITS mailing list