aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/rcutorture/bin/kvm.sh
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2020-11-19 15:23:04 -0800
committerPaul E. McKenney <paulmck@kernel.org>2021-01-04 14:01:20 -0800
commitcb212767346ceba58c8b7bfdbbf45339b86e09c0 (patch)
tree1052161d1b4db09b138ead9ecf4d9ba28ef991cf /tools/testing/selftests/rcutorture/bin/kvm.sh
parenttools/rcutorture: Make identify_qemu_vcpus() independent of local language (diff)
downloadlinux-dev-cb212767346ceba58c8b7bfdbbf45339b86e09c0.tar.xz
linux-dev-cb212767346ceba58c8b7bfdbbf45339b86e09c0.zip
torture: Make kvm.sh "Test Summary" date be end of test
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>
Diffstat (limited to 'tools/testing/selftests/rcutorture/bin/kvm.sh')
-rwxr-xr-xtools/testing/selftests/rcutorture/bin/kvm.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/kvm.sh b/tools/testing/selftests/rcutorture/bin/kvm.sh
index 0a9211a447a1..c8356d508252 100755
--- a/tools/testing/selftests/rcutorture/bin/kvm.sh
+++ b/tools/testing/selftests/rcutorture/bin/kvm.sh
@@ -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