Skip to content

Commit 21fbc62

Browse files
committed
torture: Output per-failed-run summary lines from torture.sh
Currently, torture.sh lists the failed runs, but it is up to the user to work out what failed. This is especially annoying for KCSAN runs, where RCU's tighter definitions result in failures being reported for other parts of the kernel. This commit therefore outputs "Summary:" lines for each failed run, allowing the user to more quickly identify which failed runs need focused attention. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
1 parent 010e577 commit 21fbc62

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ nfailures=0
414414
echo FAILURES: | tee -a $T/log
415415
if test -s "$T/failures"
416416
then
417-
cat "$T/failures" | tee -a $T/log
417+
awk < "$T/failures" -v sq="'" '{ print "echo " sq $0 sq; print "grep Summary: " $2 "/log | sed -e " sq "s/^[^S]*/ /" sq; }' | sh | tee -a $T/log
418418
nfailures="`wc -l "$T/failures" | awk '{ print $1 }'`"
419419
ret=2
420420
fi

0 commit comments

Comments
 (0)