rcutorture: Make kvm-recheck.sh export TORTURE_SUITE
authorPaul E. McKenney <paulmck@kernel.org>
Mon, 29 Aug 2022 23:23:11 +0000 (16:23 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 18 Oct 2022 22:02:59 +0000 (15:02 -0700)
As it should, the kvm-recheck.sh script sets the TORTURE_SUITE bash
variable based on the type of rcutorture test being run.  However,
it does not export it.  Which is OK, at least until you try running
kvm-again.sh on either a rcuscale or a refscale test, at which point you
get false-positive "no success message, N successful version messages"
errors.  This commit therefore causes the kvm-recheck.sh script to export
TORTURE_SUITE, suppressing these false positives.

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

index 0789c56..1df7e69 100755 (executable)
@@ -30,7 +30,7 @@ do
                        resdir=`echo $i | sed -e 's,/$,,' -e 's,/[^/]*$,,'`
                        head -1 $resdir/log
                fi
-               TORTURE_SUITE="`cat $i/../torture_suite`"
+               TORTURE_SUITE="`cat $i/../torture_suite`" ; export TORTURE_SUITE
                configfile=`echo $i | sed -e 's,^.*/,,'`
                rm -f $i/console.log.*.diags
                case "${TORTURE_SUITE}" in