[m-rev.] diff: improve nightly test mail

Simon Taylor stayl at cs.mu.OZ.AU
Sat Sep 15 22:52:26 AEST 2001


Estimated hours taken: 0.1

tools/run_all_tests_from_cron:
	Include the first 100 lines of the log file summary
	in the test result mail.

Index: run_all_tests_from_cron
===================================================================
RCS file: /home/mercury1/repository/mercury/tools/run_all_tests_from_cron,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -u -r1.40 -r1.41
--- run_all_tests_from_cron	2001/09/04 09:27:28	1.40
+++ run_all_tests_from_cron	2001/09/15 12:51:37	1.41
@@ -145,9 +145,6 @@
 		echo "test passed"
 	fi
 	echo
-	echo last 20 lines of log file:
-	tail -20 $logfile
-	echo
 	case $HOST in
 		hg) base=/home/hg ;;
 		*) base=/home/mercury ;;
@@ -167,6 +164,13 @@
 	echo test FAILED
 	echo log file in $logfile
 	echo log file summary in $logfile.errs
+fi
+
+if [ -s $logfile.errs ]; then
+	echo
+	echo first 100 lines of log file summary:
+	head -100 $logfile
+elif [ $test_status = "FAILED" ]; then
 	echo
 	echo last 20 lines of log file:
 	tail -20 $logfile
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list