[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:35:39 PDT 2010
changeset: 755:6c5c4bf67c5c
branch: 1.4.x
user: JericoRevote
date: Tue Feb 16 15:41:47 2010 +1100
files: SysTest/PerformanceTests/testAll.py SysTest/RegressionTests/testAll.py
description:
Added a call to sys.exit with the corresponding error code based on the failed count.
diff -r 1590300da1e4 -r 6c5c4bf67c5c SysTest/PerformanceTests/testAll.py
--- a/SysTest/PerformanceTests/testAll.py Thu Feb 18 11:50:59 2010 +1100
+++ b/SysTest/PerformanceTests/testAll.py Tue Feb 16 15:41:47 2010 +1100
@@ -44,4 +44,9 @@ def runTests():
print message
FILE.close()
+ if failed > 0:
+ sys.exit(1)
+ else:
+ sys.exit(0)
+
runTests()
diff -r 1590300da1e4 -r 6c5c4bf67c5c SysTest/RegressionTests/testAll.py
--- a/SysTest/RegressionTests/testAll.py Thu Feb 18 11:50:59 2010 +1100
+++ b/SysTest/RegressionTests/testAll.py Tue Feb 16 15:41:47 2010 +1100
@@ -72,4 +72,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