torture: Drop log.long generation from torture.sh
authorPaul E. McKenney <paulmck@kernel.org>
Fri, 27 Nov 2020 05:27:27 +0000 (21:27 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 7 Jan 2021 01:03:45 +0000 (17:03 -0800)
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>
tools/testing/selftests/rcutorture/bin/torture.sh

index 43ef2c0..cf74123 100755 (executable)
@@ -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