]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Improve the script to also show failures in the post-regtest checks
authorFlorian Krohm <florian@eich-krohm.de>
Mon, 3 Aug 2015 20:03:41 +0000 (20:03 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Mon, 3 Aug 2015 20:03:41 +0000 (20:03 +0000)
in the regtest log.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15478

nightly/bin/nightly

index 583e7a9c7bf6878935f3a0cf3d33791dd888013f..121e6a8b1fc96ad15d9cecdac8f4edfbe203681b 100755 (executable)
@@ -175,6 +175,9 @@ for logfile in old new ; do
           "Running regression tests         " \
           "cd valgrind-$logfile && ${ABT_RUN_REGTEST}"
 
+   # Stash away the return code of the regression run
+   regrun_rc=$?
+
    # Grab some indicative text for the short log file -- if the regtests
    # succeeded, show their results.  If we didn't make it that far, show the
    # last 20 lines.
@@ -183,6 +186,14 @@ for logfile in old new ; do
       echo "Regression test results follow" >> $logfile.short
       echo >> $logfile.short
       awk '/^== [0-9]+ tests/, /^$/ { print }' $logfile.verbose >> $logfile.short
+   # Check the return code of the regression run; we might have successfully
+   # run all tests but still failed in the post-regtest checks.
+      if [ $regrun_rc != "0" ]; then
+         echo >> $logfile.short
+         echo "Last 20 lines of verbose log follow" >> $logfile.short \
+         echo >> $logfile.short
+         tail -20 $logfile.verbose >> $logfile.short
+      fi
    ) || (
       echo >> $logfile.short
       echo "Last 20 lines of verbose log follow" >> $logfile.short \