diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2020-04-15 08:51:57 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2020-04-15 08:51:57 +0000 |
commit | a53638fe0ee03ae2325198cde99cd483c898fcdb (patch) | |
tree | 82f8735f8359a00b93b74f31110bf0ed1b9fd41d /abe-bisect-helper.sh | |
parent | f8246eeb91dec4e3bb052b94528dc646e3f1a3aa (diff) |
abe-bisect*: Fix support for LTO testcases
With LTO tests, the source filename is not printed exactly in the
results summary, so don't grep for it.
Counting the number of FAIL/PASS should be sufficient since dejagnu
will have already taken care of running only the tests we want.
Change-Id: I6fddae2ca2fbb5c8f19a555b890e512a6a658c08
Diffstat (limited to 'abe-bisect-helper.sh')
-rwxr-xr-x | abe-bisect-helper.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/abe-bisect-helper.sh b/abe-bisect-helper.sh index b3e1aac0..d589e797 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 -w FAIL) +nb_fail=$(grep -c -w FAIL $sums) [ ${nb_fail} -gt ${GOODFAIL} ] && exit 1 # More failures than GOOD, this is a bad one -nb_pass=$(grep ${TESTNAME} $sums | grep -c -w PASS) +nb_pass=$(grep -c -w PASS $sums) [ ${nb_pass} -ge ${GOODPASS} ] && exit 0 # At least as many passes as GOOD, this is a good one exit 125 # something went wrong |