[cig-commits] commit: Display failed_commands only if there's a failure.

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


changeset:   406:541130b1620f
branch:      1.4.x
user:        JericoRevote
date:        Wed Mar 03 14:02:36 2010 +1100
files:       SysTest/RegressionTests/testAll.py
description:
Display failed_commands only if there's a failure.


diff -r 733cc4fa5e3d -r 541130b1620f SysTest/RegressionTests/testAll.py
--- a/SysTest/RegressionTests/testAll.py	Tue Feb 16 15:41:55 2010 +1100
+++ b/SysTest/RegressionTests/testAll.py	Wed Mar 03 14:02:36 2010 +1100
@@ -37,9 +37,12 @@ def runTests():
     message += "--------------------------------------------------------\n" + \
           "[SYS] PICellerator Normal-Res Integration Tests:\n" + \
           "[SYS]      Total Passes: (" + str(passed) + "/" + str(len( commands )) + ")\n" \
-          "[SYS]      Failed Commands:\n"
-    for command in failed_commands:
-        message += "[SYS]            " + command + "\n"
+
+    if( len(failed_commands) > 0 ):
+        message += "[SYS]      Failed Commands:\n"
+        for command in failed_commands:
+            message += "[SYS]            " + command + "\n"
+
     message += "--------------------------------------------------------\n"
     FILE.write( message )
     print message



More information about the CIG-COMMITS mailing list