java/trunk/steering-files/src/main/scripts
--- java/trunk/steering-files/src/main/scripts/test_steering_files.py 2014-03-28 00:09:48 UTC (rev 408)
+++ java/trunk/steering-files/src/main/scripts/test_steering_files.py 2014-03-28 00:32:53 UTC (rev 409)
@@ -11,9 +11,13 @@
if len(sys.argv) > 1:
jar = sys.argv[1]
+# verbosity
+verbose = True
+
# basic command to run the steering file
-run_cmd = "java -jar %s -x" % jar
+run_cmd = "java -jar %s -x -v" % jar
print "base run command: %s" % run_cmd
+print
# make a list of steering files to check
steering_files = []
@@ -64,11 +68,12 @@
# print out lines with exceptions and all subsequent output
if 'Exception' in line:
printLine = True
- if printLine:
+ if printLine or verbose:
print " %s" % line,
# print the return value
retval = process.wait()
+ print
print " return value: %d" % retval
print
@@ -86,4 +91,4 @@
print
print "Files with errors: "
for bad_file in bad_files:
- print " %s" % bad_file
\ No newline at end of file
+ print " %s" % bad_file