[gs-cvs] rev 7013 - trunk/gs/toolbin/tests
giles at ghostscript.com
giles at ghostscript.com
Wed Aug 30 11:38:50 PDT 2006
Author: giles
Date: 2006-08-30 11:38:50 -0700 (Wed, 30 Aug 2006)
New Revision: 7013
Modified:
trunk/gs/toolbin/tests/run_nightly
Log:
Print the hostname and architecture of the machine running the
regression to better distinguish multiple reports. This calls
common unix tools and may therefore reduce portability.
Also, print something to acknowledge empty fields in the report.
Modified: trunk/gs/toolbin/tests/run_nightly
===================================================================
--- trunk/gs/toolbin/tests/run_nightly 2006-08-30 16:37:43 UTC (rev 7012)
+++ trunk/gs/toolbin/tests/run_nightly 2006-08-30 18:38:50 UTC (rev 7013)
@@ -247,6 +247,8 @@
for line in p.readlines():
diff = diff + line
p.close()
+else:
+ diff = diff + 'no changes\n'
# Get updated baselines
baselines = 'The following files had their baselines updated:\n'
@@ -255,7 +257,8 @@
for line in p.fromchild.readlines():
baselines = baselines + line
p.wait()
-
+else:
+ baselines = baselines + 'no updates\n'
baselines += "\n\n"
# Prepend checkout times
@@ -264,9 +267,23 @@
times += "Testing revision " + revision + "\n"
times += "\n"
+# Prepend host information
+p = os.popen('hostname -f')
+if p:
+ hostname = string.strip(p.readline())
+ p.close()
+else:
+ hostname = 'unknown host'
+host = "Running regression test on " + hostname + " ("
+p = os.popen('uname -m -o')
+if p:
+ host += string.strip(p.readline())
+ p.close()
+host += ')\n\n'
+
# Build the report and capture it in a rotating log file
log = open(gsconf.log_regression, "w")
-msg = times + baselines + diff
+msg = host + times + baselines + diff
log.write(msg)
log.write(regout)
log.close()
More information about the gs-cvs
mailing list