torture: Make TORTURE_TRUST_MAKE available in kvm-again.sh environment
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 23 Feb 2021 20:07:39 +0000 (12:07 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 22 Mar 2021 15:29:20 +0000 (08:29 -0700)
commita5dbe2524f553a1283b3364ff91e96bfb618ceab
tree2a493b62e5a755773a54c26b4e7b71da5400d0c9
parent018629e909ffcabfc657388094371f20ba90649f
torture: Make TORTURE_TRUST_MAKE available in kvm-again.sh environment

Because the TORTURE_TRUST_MAKE environment variable is not recorded,
kvm-again.sh runs can result in the parse-build.sh script emitting
false-positive "BUG: TREE03 no build" messages.  These messages are
intended to complain about any lack of compiler invocations when the
--trust-make flag is not given to kvm.sh.  However, when this flag is
given to kvm.sh (and thus when TORTURE_TRUST_MAKE=y), lack of compiler
invocations is expected behavior when rebuilding from identical source
code.

This commit therefore makes kvm-test-1-run.sh record the value of the
TORTURE_TRUST_MAKE environment variable as an additional comment in the
qemu-cmd file, and also makes kvm-again.sh reconstitute that variable
from that comment.

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