summaryrefslogtreecommitdiff
path: root/abe-bisect.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.sh
parenta53638fe0ee03ae2325198cde99cd483c898fcdb (diff)
abe-bisect*: Fix previous commit
Change-Id: Ib51c33b18f95263c76982b84dbfb993d398cc13d
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 83cc3140..ecf551f4 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 -c -w FAIL $sums)
-good_nb_pass=$(grep -c -w PASS $sums)
+good_nb_fail=$(grep -w FAIL $sums | wc -l)
+good_nb_pass=$(grep -w PASS $sums | wc -l)
${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 -c -w FAIL $sums)
-bad_nb_pass=$(grep -c -w PASS $sums)
+bad_nb_fail=$(grep -w FAIL $sums | wc -l)
+bad_nb_pass=$(grep -w PASS $sums | wc -l)
# make sure BAD has more failures than GOOD
if [ $bad_nb_fail -le $good_nb_fail ]; then