[tip: core/rcu] torture: Make kvm.sh "Test Summary" date be end of test
From: tip-bot2 for Paul E. McKenney
Date: Fri Feb 12 2021 - 08:08:08 EST
The following commit has been merged into the core/rcu branch of tip:
Commit-ID: cb212767346ceba58c8b7bfdbbf45339b86e09c0
Gitweb: https://git.kernel.org/tip/cb212767346ceba58c8b7bfdbbf45339b86e09c0
Author: Paul E. McKenney <paulmck@xxxxxxxxxx>
AuthorDate: Thu, 19 Nov 2020 15:23:04 -08:00
Committer: Paul E. McKenney <paulmck@xxxxxxxxxx>
CommitterDate: Mon, 04 Jan 2021 14:01:20 -08:00
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@xxxxxxxxxx>
---
tools/testing/selftests/rcutorture/bin/kvm.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tools/testing/selftests/rcutorture/bin/kvm.sh b/tools/testing/selftests/rcutorture/bin/kvm.sh
index 0a9211a..c8356d5 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