summaryrefslogtreecommitdiff
path: root/abe-bisect.sh
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2020-04-15 08:51:57 +0000
committerChristophe Lyon <christophe.lyon@linaro.org>2020-04-15 08:51:57 +0000
commita53638fe0ee03ae2325198cde99cd483c898fcdb (patch)
tree82f8735f8359a00b93b74f31110bf0ed1b9fd41d /abe-bisect.sh
parentf8246eeb91dec4e3bb052b94528dc646e3f1a3aa (diff)
abe-bisect*: Fix support for LTO testcases
With LTO tests, the source filename is not printed exactly in the results summary, so don't grep for it. Counting the number of FAIL/PASS should be sufficient since dejagnu will have already taken care of running only the tests we want. Change-Id: I6fddae2ca2fbb5c8f19a555b890e512a6a658c08
Diffstat (limited to 'abe-bisect.sh')
-rwxr-xr-xabe-bisect.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/abe-bisect.sh b/abe-bisect.sh
index 38185324..83cc3140 100755
--- a/abe-bisect.sh
+++ b/abe-bisect.sh
@@ -104,8 +104,8 @@ if [ $? -ne 0 ]; then
fi
sums=`find builds/*/${TARGET}/gcc.git~master_rev_${GOODSHA1}-stage2/ -name "*.sum"`
-good_nb_fail=$(grep ${TESTNAME} $sums | grep -c -w FAIL)
-good_nb_pass=$(grep ${TESTNAME} $sums | grep -c -w PASS)
+good_nb_fail=$(grep -c -w FAIL $sums)
+good_nb_pass=$(grep -c -w PASS $sums)
${ABE}/abe.sh --target ${TARGET} \
gcc=gcc.git@${BADSHA1} \
@@ -120,8 +120,8 @@ if [ $? -ne 0 ]; then
fi
sums=`find builds/*/${TARGET}/gcc.git~master_rev_${BADSHA1}-stage2/ -name "*.sum"`
-bad_nb_fail=$(grep ${TESTNAME} $sums | grep -c -w FAIL)
-bad_nb_pass=$(grep ${TESTNAME} $sums | grep -c -w PASS)
+bad_nb_fail=$(grep -c -w FAIL $sums)
+bad_nb_pass=$(grep -c -w PASS $sums)
# make sure BAD has more failures than GOOD
if [ $bad_nb_fail -le $good_nb_fail ]; then