|
From: <sv...@va...> - 2009-06-04 02:26:02
|
Author: njn
Date: 2009-06-04 03:25:39 +0100 (Thu, 04 Jun 2009)
New Revision: 10240
Log:
Print the end time as well as the start time so it's easy to see how long it
took.
Modified:
trunk/nightly/bin/nightly
Modified: trunk/nightly/bin/nightly
===================================================================
--- trunk/nightly/bin/nightly 2009-06-04 01:52:14 UTC (rev 10239)
+++ trunk/nightly/bin/nightly 2009-06-04 02:25:39 UTC (rev 10240)
@@ -174,10 +174,14 @@
# Prepare results and send
#----------------------------------------------------------------------------
+# Get times and date
+ABT_END=`date "+%F %H:%M:%S %Z"`
+
# 'final' shows the difference between the old and new results
-echo > final
-echo "Nightly build on" $ABT_MACHINE "(" $ABT_DETAILS ")" \
- "started at" $ABT_START >> final
+echo > final
+echo "Nightly build on" $ABT_MACHINE "(" $ABT_DETAILS ")" >> final
+echo "Started at" $ABT_START >> final
+echo "Ended at" $ABT_END >> final
# If the results differ from 24 hours ago, print extra stuff.
diff -C1 old.short new.short > diff.short
|