summaryrefslogtreecommitdiff
path: root/abe-bisect-helper.sh
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2020-04-15 10:04:59 +0000
committerChristophe Lyon <christophe.lyon@linaro.org>2020-04-15 10:04:59 +0000
commit6a6a44f8c4f75bf66a80af0a6b5f4b6aed6a3a3e (patch)
tree0fb51f390ada5dc96b971d0066510fb2b3a1f069 /abe-bisect-helper.sh
parenta53638fe0ee03ae2325198cde99cd483c898fcdb (diff)
abe-bisect*: Fix previous commit
Change-Id: Ib51c33b18f95263c76982b84dbfb993d398cc13d
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 d589e797..9eea24ef 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 -c -w FAIL $sums)
+nb_fail=$(grep -w FAIL $sums | wc -l)
[ ${nb_fail} -gt ${GOODFAIL} ] && exit 1 # More failures than GOOD, this is a bad one
-nb_pass=$(grep -c -w PASS $sums)
+nb_pass=$(grep -w PASS $sums | wc -l)
[ ${nb_pass} -ge ${GOODPASS} ] && exit 0 # At least as many passes as GOOD, this is a good one
exit 125 # something went wrong