Skip to content

Commit 9eb97fe

Browse files
committed
torture: Better summary diagnostics for build failures
The reaction of kvm-recheck.sh is obscure at best, and easy to miss completely. This commit therefore prints "BUG: Build failed" in the summary at the end of a run. This commit also adds the line of dashes in cases where performance info is not available, and also avoids printing nonsense diagnostics in cases where some of the normal test output is not available. In addition, this commit saves off the .config file even when the build fails. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
1 parent 5ed63b1 commit 9eb97fe

4 files changed

Lines changed: 21 additions & 8 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ configfile=`echo $i | sed -e 's/^.*\///'`
3535
ncs=`grep "Writes: Total:" $i/console.log 2> /dev/null | tail -1 | sed -e 's/^.* Total: //' -e 's/ .*$//'`
3636
if test -z "$ncs"
3737
then
38-
echo $configfile
38+
echo "$configfile -------"
3939
else
4040
title="$configfile ------- $ncs acquisitions/releases"
4141
dur=`sed -e 's/^.* locktorture.shutdown_secs=//' -e 's/ .*$//' < $i/qemu-cmd 2> /dev/null`

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ configfile=`echo $i | sed -e 's/^.*\///'`
3535
ngps=`grep ver: $i/console.log 2> /dev/null | tail -1 | sed -e 's/^.* ver: //' -e 's/ .*$//'`
3636
if test -z "$ngps"
3737
then
38-
echo $configfile
38+
echo "$configfile -------"
3939
else
4040
title="$configfile ------- $ngps grace periods"
4141
dur=`sed -e 's/^.* rcutorture.shutdown_secs=//' -e 's/ .*$//' < $i/qemu-cmd 2> /dev/null`

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

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
# Authors: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
2626

2727
PATH=`pwd`/tools/testing/selftests/rcutorture/bin:$PATH; export PATH
28+
. tools/testing/selftests/rcutorture/bin/functions.sh
2829
for rd in "$@"
2930
do
3031
firsttime=1
@@ -39,13 +40,24 @@ do
3940
fi
4041
TORTURE_SUITE="`cat $i/../TORTURE_SUITE`"
4142
kvm-recheck-${TORTURE_SUITE}.sh $i
42-
configcheck.sh $i/.config $i/ConfigFragment
43-
parse-build.sh $i/Make.out $configfile
44-
parse-torture.sh $i/console.log $configfile
45-
parse-console.sh $i/console.log $configfile
46-
if test -r $i/Warnings
43+
if test -f "$i/console.log"
4744
then
48-
cat $i/Warnings
45+
configcheck.sh $i/.config $i/ConfigFragment
46+
parse-build.sh $i/Make.out $configfile
47+
parse-torture.sh $i/console.log $configfile
48+
parse-console.sh $i/console.log $configfile
49+
if test -r $i/Warnings
50+
then
51+
cat $i/Warnings
52+
fi
53+
else
54+
if test -f "$i/qemu-cmd"
55+
then
56+
print_bug qemu failed
57+
else
58+
print_bug Build failed
59+
fi
60+
echo " $i"
4961
fi
5062
done
5163
done

‎tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ then
112112
fi
113113
else
114114
cp $builddir/Make*.out $resdir
115+
cp $builddir/.config $resdir || :
115116
echo Build failed, not running KVM, see $resdir.
116117
if test -f $builddir.wait
117118
then

0 commit comments

Comments
 (0)