summaryrefslogtreecommitdiff
path: root/abe-bisect.sh
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2019-11-06 09:43:43 +0000
committerChristophe Lyon <christophe.lyon@linaro.org>2019-11-06 09:45:08 +0000
commit7068661d5ed084a600c23e229f6b518e0408f15c (patch)
treefaef791f774dce79042fd70ece155f70cf31e383 /abe-bisect.sh
parentc4ef1c1813a73b9debb84a143c6670d3a3143afc (diff)
abe-bisect.sh, abe-bisect-helper.sh: Be stricter when counting FAIL/PASS
Change-Id: Iea93bb1abf64eb05efa3c98d631a84d2d9e84e3e
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 66a2b980..6e57e507 100755
--- a/abe-bisect.sh
+++ b/abe-bisect.sh
@@ -99,8 +99,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 FAIL)
-good_nb_pass=$(grep ${TESTNAME} $sums | grep -c PASS)
+good_nb_fail=$(grep ${TESTNAME} $sums | grep -c -w FAIL)
+good_nb_pass=$(grep ${TESTNAME} $sums | grep -c -w PASS)
${ABE}/abe.sh --target ${TARGET} \
gcc=gcc.git@${BADSHA1} \
@@ -115,8 +115,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 FAIL)
-bad_nb_pass=$(grep ${TESTNAME} $sums | grep -c PASS)
+bad_nb_fail=$(grep ${TESTNAME} $sums | grep -c -w FAIL)
+bad_nb_pass=$(grep ${TESTNAME} $sums | grep -c -w PASS)
# make sure BAD has more failures than GOOD
if [ $bad_nb_fail -le $good_nb_fail ]; then