torture: Cause mkinitrd.sh to indicate failure on compile errors
authorPaul E. McKenney <paulmck@kernel.org>
Fri, 14 Jul 2023 01:29:36 +0000 (18:29 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 21 Jul 2023 00:54:53 +0000 (17:54 -0700)
commit7c25ee819f39a6c84d5fbe87fee4a7f78dd204a1
treee6dbf7cd267e770cad31e7e86024ccc66b818f23
parent451d2a52f652446f002f289431c171c2064a06fb
torture: Cause mkinitrd.sh to indicate failure on compile errors

Currently, if the C program created by mkinitrd.sh has compile errors,
the errors are printed, but kvm.sh soldiers on, building kernels that
have init-less initrd setups.  The kernels then fail on boot when they
attempt to mount non-existent root filesystems.

This commit therefore improves user friendliness by making mkinitrd.sh
return non-zero exit status on compile errors, which in turn causes kvm.sh
to take an early exit, with the compile errors still clearly visible.

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