summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/rcutorture/bin/kvm-again.sh
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2021-03-17 12:26:04 -0700
committerPaul E. McKenney <paulmck@kernel.org>2021-05-10 16:05:06 -0700
commitee8fef9137e9e75a36342077a2414dbd86c703bf (patch)
tree587839f74bd253391fb92a4948a83296a764cb3e /tools/testing/selftests/rcutorture/bin/kvm-again.sh
parent32dbdaf71ab9b606d0649616039c897df2b03e47 (diff)
torture: Abstract end-of-run summary
This commit abstractst the end-of-run summary from kvm-again.sh, and, while in the area, brings its format into line with that of kvm.sh. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'tools/testing/selftests/rcutorture/bin/kvm-again.sh')
-rwxr-xr-xtools/testing/selftests/rcutorture/bin/kvm-again.sh11
1 files changed, 3 insertions, 8 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/kvm-again.sh b/tools/testing/selftests/rcutorture/bin/kvm-again.sh
index b74bb4343ab9..d8c8483c46f1 100755
--- a/tools/testing/selftests/rcutorture/bin/kvm-again.sh
+++ b/tools/testing/selftests/rcutorture/bin/kvm-again.sh
@@ -143,6 +143,8 @@ then
usage
fi
rm -f "$rundir"/*/{console.log,console.log.diags,qemu_pid,qemu-retval,Warnings,kvm-test-1-run.sh.out,kvm-test-1-run-qemu.sh.out,vmlinux} "$rundir"/log
+touch "$rundir/log"
+echo $scriptname $args | tee -a "$rundir/log"
echo $oldrun > "$rundir/re-run"
if ! test -d "$rundir/../../bin"
then
@@ -178,12 +180,5 @@ then
echo ---- Dryrun complete, directory: $rundir | tee -a "$rundir/log"
else
( cd "$rundir"; sh $T/runbatches.sh )
- kcsan-collapse.sh "$rundir" | tee -a "$rundir/log"
- echo | tee -a "$rundir/log"
- echo ---- Results directory: $rundir | tee -a "$rundir/log"
- kvm-recheck.sh "$rundir" > $T/kvm-recheck.sh.out 2>&1
- ret=$?
- cat $T/kvm-recheck.sh.out | tee -a "$rundir/log"
- echo " --- Done at `date` (`get_starttime_duration $starttime`) exitcode $ret" | tee -a "$rundir/log"
- exit $ret
+ kvm-end-run-stats.sh "$rundir" "$starttime"
fi