Skip to content

Commit 9a32ed1

Browse files
committed
torture: Indicate which torture.sh runs' bugs are all KCSAN reports
This commit further improves torture.sh run summaries by indicating which runs' "Bugs:" counts are all KCSAN reports, and further printing an additional end-of-run summary line when all errors reported in all runs were KCSAN reports. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
1 parent a711aac commit 9a32ed1

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,8 +414,14 @@ nfailures=0
414414
echo FAILURES: | tee -a $T/log
415415
if test -s "$T/failures"
416416
then
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
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 | tee "$T/failuresum"
418418
nfailures="`wc -l "$T/failures" | awk '{ print $1 }'`"
419+
grep "^ Summary: " "$T/failuresum" |
420+
grep -v '^ Summary: Bugs: [0-9]* (all bugs kcsan)$' > "$T/nonkcsan"
421+
if test -s "$T/nonkcsan"
422+
then
423+
nonkcsanbug="yes"
424+
fi
419425
ret=2
420426
fi
421427
if test "$do_kcsan" = "yes"
@@ -424,6 +430,10 @@ then
424430
fi
425431
echo Started at $startdate, ended at `date`, duration `get_starttime_duration $starttime`. | tee -a $T/log
426432
echo Summary: Successes: $nsuccesses Failures: $nfailures. | tee -a $T/log
433+
if test -z "$nonkcsanbug" && test -s "$T/failuresum"
434+
then
435+
echo " All bugs were KCSAN failures."
436+
fi
427437
tdir="`cat $T/successes $T/failures | head -1 | awk '{ print $NF }' | sed -e 's,/[^/]\+/*$,,'`"
428438
if test -n "$tdir" && test $compress_kasan_vmlinux -gt 0
429439
then

0 commit comments

Comments
 (0)