[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: 230:c1852fe9c345
branch: 1.4.x
parent: 228:18e5a687ebdc
user: JericoRevote
date: Wed Jan 06 13:06:42 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 18e5a687ebdc -r c1852fe9c345 scons.py
--- a/scons.py Wed Jan 06 13:04:32 2010 +1100
+++ b/scons.py Wed Jan 06 13:06:42 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