diff options
Diffstat (limited to 'abe-bisect.sh')
-rwxr-xr-x | abe-bisect.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/abe-bisect.sh b/abe-bisect.sh index ecf551f4..3764d07b 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 -w FAIL $sums | wc -l) -good_nb_pass=$(grep -w PASS $sums | wc -l) +good_nb_fail=$(grep -wc FAIL $sums) +good_nb_pass=$(grep -wc 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 -w FAIL $sums | wc -l) -bad_nb_pass=$(grep -w PASS $sums | wc -l) +bad_nb_fail=$(grep -wc FAIL $sums) +bad_nb_pass=$(grep -wc PASS $sums) # make sure BAD has more failures than GOOD if [ $bad_nb_fail -le $good_nb_fail ]; then |