Skip to content

Commit 748d792

Browse files
paulmckrcuNeeraj Upadhyay (AMD)
authored andcommitted
torture: Make torture.sh --allmodconfig testing fail on warnings
Currently, the torture.sh --allmodconfig testing looks solely at the exit code from the kernel build, and thus fails to flag many compiler warnings. This commit therefore checks the kernel-build output for compiler diagnostics. Signed-off-by: Paul E. McKenney <[email protected]> Signed-off-by: Neeraj Upadhyay (AMD) <[email protected]>
1 parent 17f4698 commit 748d792

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/testing/selftests/rcutorture/bin/torture.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,10 @@ then
438438
make -j$MAKE_ALLOTED_CPUS >> "$amcdir/Make.out" 2>&1
439439
retcode="$?"
440440
echo $retcode > "$amcdir/Make.exitcode"
441+
if grep -E -q "Stop|ERROR|Error|error:|warning:" < "$amcdir/Make.out"
442+
then
443+
retcode=99
444+
fi
441445
buildphase='"make"'
442446
fi
443447
if test "$retcode" -eq 0

0 commit comments

Comments
 (0)