torture: Make kvm-find-errors.sh account for kvm-remote.sh
authorPaul E. McKenney <paulmck@kernel.org>
Fri, 26 Mar 2021 02:39:14 +0000 (19:39 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 10 May 2021 23:05:06 +0000 (16:05 -0700)
Currently, kvm-find-errors.sh assumes that if "--buildonly" appears in
the log file, then the run did builds but ran no kernels.  This breaks
with kvm-remote.sh, which uses kvm.sh to do a build, then kvm-again.sh
to run the kernels built on remote systems.  This commit therefore adds
a check for a kvm-remote.sh run.

While in the area, this commit checks for "--build-only" as well as
"--build-only".

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

index 0670841122d8a0fc9feb74e1534b2fd03dc21cef..daf64b507038778874f0c7153a1150d5674ebe67 100755 (executable)
@@ -43,7 +43,7 @@ then
 else
        echo No build errors.
 fi
-if grep -q -e "--buildonly" < ${rundir}/log
+if grep -q -e "--build-\?only" < ${rundir}/log && ! test -f "${rundir}/remote-log"
 then
        echo Build-only run, no console logs to check.
        exit $editorret