summaryrefslogtreecommitdiff
path: root/abe-bisect-helper.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-helper.sh
parentc4ef1c1813a73b9debb84a143c6670d3a3143afc (diff)
abe-bisect.sh, abe-bisect-helper.sh: Be stricter when counting FAIL/PASS
Change-Id: Iea93bb1abf64eb05efa3c98d631a84d2d9e84e3e
Diffstat (limited to 'abe-bisect-helper.sh')
-rwxr-xr-xabe-bisect-helper.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/abe-bisect-helper.sh b/abe-bisect-helper.sh
index eefe14a2..b3e1aac0 100755
--- a/abe-bisect-helper.sh
+++ b/abe-bisect-helper.sh
@@ -56,10 +56,10 @@ ${ABE}/abe.sh --target ${TARGET} \
[ $? -ne 0 ] && exit 125
sums=`find builds/*/${TARGET}/gcc.git~master_rev_${REV}-stage2/ -name "*.sum"`
-nb_fail=$(grep ${TESTNAME} $sums | grep -c FAIL)
+nb_fail=$(grep ${TESTNAME} $sums | grep -c -w FAIL)
[ ${nb_fail} -gt ${GOODFAIL} ] && exit 1 # More failures than GOOD, this is a bad one
-nb_pass=$(grep ${TESTNAME} $sums | grep -c PASS)
+nb_pass=$(grep ${TESTNAME} $sums | grep -c -w PASS)
[ ${nb_pass} -ge ${GOODPASS} ] && exit 0 # At least as many passes as GOOD, this is a good one
exit 125 # something went wrong