Skip to content

Commit c0b94ff

Browse files
committed
rcutorture: Summarize summary of build and run results
When running the default list of tests, the run summary of a successful (that is, failed to find any errors) run fits easily on a 24-line screen. But a run with something like "--configs '5*CFLIST'" will be 80 lines long, and it is all too easy to miss a failure message when scrolling back. This commit therefore prints out the number of runs with failing builds or runtime failures, but only if there are any such failures. For example, a run with a single build error and a single runtime error would print two lines like this: 1 runs with build errors. 1 runs with runtime errors. Signed-off-by: Paul E. McKenney <[email protected]>
1 parent e071424 commit c0b94ff

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

tools/testing/selftests/rcutorture/bin/kvm-recheck.sh

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
#
1414
# Authors: Paul E. McKenney <[email protected]>
1515

16+
T=/tmp/kvm-recheck.sh.$$
17+
trap 'rm -f $T' 0 2
18+
1619
PATH=`pwd`/tools/testing/selftests/rcutorture/bin:$PATH; export PATH
1720
. functions.sh
1821
for rd in "$@"
@@ -68,4 +71,16 @@ do
6871
fi
6972
done
7073
done
71-
EDITOR=echo kvm-find-errors.sh "${@: -1}" > /dev/null 2>&1
74+
EDITOR=echo kvm-find-errors.sh "${@: -1}" > $T 2>&1
75+
ret=$?
76+
builderrors="`tr ' ' '\012' < $T | grep -c '/Make.out.diags'`"
77+
if test "$builderrors" -gt 0
78+
then
79+
echo $builderrors runs with build errors.
80+
fi
81+
runerrors="`tr ' ' '\012' < $T | grep -c '/console.log.diags'`"
82+
if test "$runerrors" -gt 0
83+
then
84+
echo $runerrors runs with runtime errors.
85+
fi
86+
exit $ret

0 commit comments

Comments
 (0)