Commit 21fbc625 authored by Paul E. McKenney's avatar Paul E. McKenney

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: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 010e5773
...@@ -414,7 +414,7 @@ nfailures=0 ...@@ -414,7 +414,7 @@ nfailures=0
echo FAILURES: | tee -a $T/log echo FAILURES: | tee -a $T/log
if test -s "$T/failures" if test -s "$T/failures"
then then
cat "$T/failures" | tee -a $T/log 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
nfailures="`wc -l "$T/failures" | awk '{ print $1 }'`" nfailures="`wc -l "$T/failures" | awk '{ print $1 }'`"
ret=2 ret=2
fi fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment