[cig-commits] commit: Added a method to display the result-summary of the

Mercurial hg at geodynamics.org
Mon Feb 1 15:30:23 PST 2010


changeset:   229:0ec60f76fd47
parent:      227:cc17de5a0c9f
user:        JericoRevote
date:        Wed Jan 06 13:06:24 2010 +1100
files:       scons.py
description:
Added a method to display the result-summary of the
integration and convergence tests when ran through ./scons.check*.


diff -r cc17de5a0c9f -r 0ec60f76fd47 scons.py
--- a/scons.py	Wed Jan 06 13:03:37 2010 +1100
+++ b/scons.py	Wed Jan 06 13:06:24 2010 +1100
@@ -1,6 +1,20 @@
 #!/usr/bin/env python
-import sys, subprocess
+import os, sys, subprocess
 subp = subprocess.Popen(
     'config/scons/scons.py ' + ' '.join(sys.argv[1:]), shell=True
 )
 subp.wait()
+
+# A manual way of displaying the result of the integration and 
+# convergence tests from ./scons.py check*.
+if len( sys.argv ) > 1:
+    if sys.argv[1] >= "check":
+        filename = "summary.dat"
+        if os.path.exists( filename ):
+            FILE = open( filename, "r" )
+            print "--------------------------------------------------------\n" + \
+                  "[SYS] SYSTEM TESTS SUMMARY \n" + \
+                  "--------------------------------------------------------"
+            print FILE.read()
+            FILE.close()
+            os.remove( filename )



More information about the CIG-COMMITS mailing list