Skip to content

Commit

Permalink
torture: Make kvm-find-errors.sh account for kvm-remote.sh
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
paulmckrcu committed May 10, 2021
1 parent b09751d commit 226dd39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/selftests/rcutorture/bin/kvm-find-errors.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 226dd39

Please sign in to comment.