[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:36:02 PDT 2010


changeset:   832:fb10c6c86834
branch:      1.4.x
user:        JericoRevote
date:        Tue Feb 16 15:43:22 2010 +1100
files:       SysTest/PerformanceTests/testAll.py SysTest/RegressionTests/testAll-lowres.py SysTest/RegressionTests/testAll.py
description:
Added a call to sys.exit with the corresponding error code based on the failed count.


diff -r 95b6d86f83a1 -r fb10c6c86834 SysTest/PerformanceTests/testAll.py
--- a/SysTest/PerformanceTests/testAll.py	Thu Feb 18 11:51:03 2010 +1100
+++ b/SysTest/PerformanceTests/testAll.py	Tue Feb 16 15:43:22 2010 +1100
@@ -48,4 +48,9 @@ def runTests():
     print message
     FILE.close()
 
+    if failed > 0:
+        sys.exit(1)
+    else:
+        sys.exit(0)
+
 runTests()
diff -r 95b6d86f83a1 -r fb10c6c86834 SysTest/RegressionTests/testAll-lowres.py
--- a/SysTest/RegressionTests/testAll-lowres.py	Thu Feb 18 11:51:03 2010 +1100
+++ b/SysTest/RegressionTests/testAll-lowres.py	Tue Feb 16 15:43:22 2010 +1100
@@ -55,4 +55,9 @@ def runTests():
     print message
     FILE.close()
 
+    if failed > 0:
+        sys.exit(1)
+    else:
+        sys.exit(0)
+
 runTests()
diff -r 95b6d86f83a1 -r fb10c6c86834 SysTest/RegressionTests/testAll.py
--- a/SysTest/RegressionTests/testAll.py	Thu Feb 18 11:51:03 2010 +1100
+++ b/SysTest/RegressionTests/testAll.py	Tue Feb 16 15:43:22 2010 +1100
@@ -70,4 +70,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