Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

torture: Print informative message for test without recheck file

If a type of torture test lacks a recheck file, a bash diagnostic is
printed, which looks like a torture-test bug. This commit gets rid of
this false positive by explicitly checking for the file, invoking it if
it exists, otherwise printing an informative non-diagnostic message.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Joel Fernandes <joelagnelf@nvidia.com>

authored by

Paul E. McKenney and committed by
Joel Fernandes
6778178c 08d5cade

+6 -1
+6 -1
tools/testing/selftests/rcutorture/bin/kvm-recheck.sh
··· 39 39 X*) 40 40 ;; 41 41 *) 42 - kvm-recheck-${TORTURE_SUITE}.sh $i 42 + if test -f tools/testing/selftests/rcutorture/bin/kvm-recheck-${TORTURE_SUITE}.sh 43 + then 44 + kvm-recheck-${TORTURE_SUITE}.sh $i 45 + else 46 + echo No kvm-recheck-${TORTURE_SUITE}.sh, so no ${TORTURE_SUITE}-specific analysis. 47 + fi 43 48 esac 44 49 if test -f "$i/qemu-retval" && test "`cat $i/qemu-retval`" -ne 0 && test "`cat $i/qemu-retval`" -ne 137 45 50 then