aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2020-11-26 21:27:27 -0800
committerPaul E. McKenney <paulmck@kernel.org>2021-01-06 17:03:45 -0800
commit5ae5f7453f93b21e06296e78e8481ba8baaaa55e (patch)
tree2572d980fbb35a2a4cbc76a0c9c090b678793518 /tools/testing/selftests
parenttorture: Make torture.sh refuse to do zero-length runs (diff)
downloadlinux-dev-5ae5f7453f93b21e06296e78e8481ba8baaaa55e.tar.xz
linux-dev-5ae5f7453f93b21e06296e78e8481ba8baaaa55e.zip
torture: Drop log.long generation from torture.sh
Now that kvm.sh puts all the relevant details in the "log" file, there is no need for torture.sh to generate a separate "log.long" file. This commit therefore drops this from torture.sh. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'tools/testing/selftests')
-rwxr-xr-xtools/testing/selftests/rcutorture/bin/torture.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/torture.sh b/tools/testing/selftests/rcutorture/bin/torture.sh
index 43ef2c0d47c1..cf741236665a 100755
--- a/tools/testing/selftests/rcutorture/bin/torture.sh
+++ b/tools/testing/selftests/rcutorture/bin/torture.sh
@@ -203,11 +203,8 @@ function torture_one {
"$@" $boottag "$cur_bootargs" --datestamp "$ds/results-$curflavor" > $T/$curflavor.out 2>&1
retcode=$?
resdir="`grep '^Results directory: ' $T/$curflavor.out | tail -1 | sed -e 's/^Results directory: //'`"
- if test -n "$resdir"
+ if test -z "$resdir"
then
- cp $T/$curflavor.out $resdir/log.long
- echo retcode=$retcode >> $resdir/log.long
- else
cat $T/$curflavor.out | tee -a $T/log
echo retcode=$retcode | tee -a $T/log
fi