mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 00:22:00 +02:00
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>
This commit is contained in:
parent
08d5cade66
commit
6778178c3b
|
|
@ -39,7 +39,12 @@ do
|
|||
X*)
|
||||
;;
|
||||
*)
|
||||
kvm-recheck-${TORTURE_SUITE}.sh $i
|
||||
if test -f tools/testing/selftests/rcutorture/bin/kvm-recheck-${TORTURE_SUITE}.sh
|
||||
then
|
||||
kvm-recheck-${TORTURE_SUITE}.sh $i
|
||||
else
|
||||
echo No kvm-recheck-${TORTURE_SUITE}.sh, so no ${TORTURE_SUITE}-specific analysis.
|
||||
fi
|
||||
esac
|
||||
if test -f "$i/qemu-retval" && test "`cat $i/qemu-retval`" -ne 0 && test "`cat $i/qemu-retval`" -ne 137
|
||||
then
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user