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 38185324..83cc3140 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 ${TESTNAME} $sums | grep -c -w FAIL) -good_nb_pass=$(grep ${TESTNAME} $sums | grep -c -w PASS) +good_nb_fail=$(grep -c -w FAIL $sums) +good_nb_pass=$(grep -c -w 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 ${TESTNAME} $sums | grep -c -w FAIL) -bad_nb_pass=$(grep ${TESTNAME} $sums | grep -c -w PASS) +bad_nb_fail=$(grep -c -w FAIL $sums) +bad_nb_pass=$(grep -c -w PASS $sums) # make sure BAD has more failures than GOOD if [ $bad_nb_fail -le $good_nb_fail ]; then |