torture: Make kvm.sh "Test Summary" date be end of test
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 19 Nov 2020 23:23:04 +0000 (15:23 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 4 Jan 2021 22:01:20 +0000 (14:01 -0800)
Currently, the "date" command producing the output on the kvm.sh "Test
Summary" line is executed at the beginning of the test, which produces a
date that is less than helpful to someone wanting to know the duration
of the test.  This commit therefore defers this command's execution to
the end of the test.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/testing/selftests/rcutorture/bin/kvm.sh

index 0a9211a447a10e369c3b6b841494c3095efa207f..c8356d508252434544b88cf179c9710b8b7e79de 100755 (executable)
@@ -517,10 +517,12 @@ END {
                dump(first, i, batchnum);
 }' >> $T/script
 
-cat << ___EOF___ >> $T/script
+cat << '___EOF___' >> $T/script
 echo
 echo
 echo " --- `date` Test summary:"
+___EOF___
+cat << ___EOF___ >> $T/script
 echo Results directory: $resdir/$ds
 kcsan-collapse.sh $resdir/$ds
 kvm-recheck.sh $resdir/$ds