]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
torture: Set configfile variable to current scenario
authorPaul E. McKenney <paulmck@kernel.org>
Sun, 26 Apr 2020 23:48:46 +0000 (16:48 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 29 Jun 2020 19:01:44 +0000 (12:01 -0700)
The torture-test recheck logic fails to set the configfile variable to
the current scenario, so this commit properly initializes this variable.
This change isn't critical given that all errors for a given scenario
follow that scenario's heading, but it is easier on the eyes to repeat it.
And this repetition also prevents confusion as to whether a given message
goes with the previous heading or the next one.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/testing/selftests/rcutorture/bin/kvm-recheck.sh

index 736f04749b90783db481504f867ca0fc5614ffaf..2261aa676304ef031f82d2e087ed2d7f4344ed0c 100755 (executable)
@@ -31,6 +31,7 @@ do
                        head -1 $resdir/log
                fi
                TORTURE_SUITE="`cat $i/../TORTURE_SUITE`"
+               configfile=`echo $i | sed -e 's,^.*/,,'`
                rm -f $i/console.log.*.diags
                kvm-recheck-${TORTURE_SUITE}.sh $i
                if test -f "$i/qemu-retval" && test "`cat $i/qemu-retval`" -ne 0 && test "`cat $i/qemu-retval`" -ne 137