torture: Make kvm-recheck.sh report .config errors
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 13 Jun 2023 18:27:04 +0000 (11:27 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 14 Jul 2023 22:10:57 +0000 (15:10 -0700)
commitcd1955d050f81450a48aa07b60933bec990c6166
treed404a2a7bf08973ed8ca1c77bf62bc61020f025c
parent5cec64e49519320ef3dab451f52ca0855de5da37
torture: Make kvm-recheck.sh report .config errors

Currently, kvm-recheck.sh will print out any .config errors with messages
of the form:

:CONFIG_TASKS_TRACE_RCU=y: improperly set

However, if these are the only errors, the resulting exit code will
declare the run successful.  This commit therefore causes kvm-recheck.sh
to record .config errors in the results directory in a file named
ConfigFragment.diags and also returns a non-zero error code in that case.

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