Skip to content

Commit eb3156f

Browse files
committed
torture: Make torture.sh summarize config and build errors
If some of the torture.sh runs had config and/or build errors, but all runs for which kernels were built ran successfully to completion, then torture.sh will incorrectly claim that all errors were KCSAN errors. This commit therefore makes torture.sh print the number of runs with config and build errors, and to refrain from claiming that all bugs were KCSAN bugs in that case. Signed-off-by: Paul E. McKenney <[email protected]>
1 parent 171cfa0 commit eb3156f

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,11 +582,23 @@ then
582582
fi
583583
echo Started at $startdate, ended at `date`, duration `get_starttime_duration $starttime`. | tee -a $T/log
584584
echo Summary: Successes: $nsuccesses Failures: $nfailures. | tee -a $T/log
585+
tdir="`cat $T/successes $T/failures | head -1 | awk '{ print $NF }' | sed -e 's,/[^/]\+/*$,,'`"
586+
find "$tdir" -name 'ConfigFragment.diags' -print > $T/configerrors
587+
find "$tdir" -name 'Make.out.diags' -print > $T/builderrors
588+
if test -s "$T/configerrors"
589+
then
590+
echo " Scenarios with .config errors: `wc -l "$T/configerrors" | awk '{ print $1 }'`"
591+
nonkcsanbug="yes"
592+
fi
593+
if test -s "$T/builderrors"
594+
then
595+
echo " Scenarios with build errors: `wc -l "$T/builderrors" | awk '{ print $1 }'`"
596+
nonkcsanbug="yes"
597+
fi
585598
if test -z "$nonkcsanbug" && test -s "$T/failuresum"
586599
then
587600
echo " All bugs were KCSAN failures."
588601
fi
589-
tdir="`cat $T/successes $T/failures | head -1 | awk '{ print $NF }' | sed -e 's,/[^/]\+/*$,,'`"
590602
if test -n "$tdir" && test $compress_concurrency -gt 0
591603
then
592604
# KASAN vmlinux files can approach 1GB in size, so compress them.

0 commit comments

Comments
 (0)