summaryrefslogtreecommitdiff
path: root/abe-bisect.sh
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2021-02-08 10:14:57 +0000
committerChristophe Lyon <christophe.lyon@linaro.org>2021-02-08 10:14:57 +0000
commit979cb5a7b98ff9edb39b6a40a631b795a9fcf54e (patch)
treebf83ccfbc4b2512c0e3c656a264b47c6cf2faf70 /abe-bisect.sh
parent94a5943b020cc8dedcf6822644977d1d2e23d784 (diff)
abe-bisect.sh: Dump .log files when we fail to detect more errors in bad vs good
Change-Id: I9f09909304b5b4d0e21bb202750f608f36a49305
Diffstat (limited to 'abe-bisect.sh')
-rwxr-xr-xabe-bisect.sh20
1 files changed, 14 insertions, 6 deletions
diff --git a/abe-bisect.sh b/abe-bisect.sh
index 86fa75b5..c93a77ba 100755
--- a/abe-bisect.sh
+++ b/abe-bisect.sh
@@ -99,9 +99,9 @@ if [ $? -ne 0 ]; then
exit 1
fi
-sums=`find builds/*/${TARGET}/*gcc.git~master_rev_${GOODSHA1}-stage2/ -name "*.sum"`
-good_nb_fail=$(cat $sums | grep -wc FAIL)
-good_nb_pass=$(cat $sums | grep -wc PASS)
+goodsums=`find builds/*/${TARGET}/*gcc.git~master_rev_${GOODSHA1}-stage2/ -name "*.sum"`
+good_nb_fail=$(cat $goodsums | grep -wc FAIL)
+good_nb_pass=$(cat $goodsums | grep -wc PASS)
${ABE}/abe.sh --target ${TARGET} \
gcc=gcc.git@${BADSHA1} \
@@ -115,13 +115,21 @@ if [ $? -ne 0 ]; then
exit 1
fi
-sums=`find builds/*/${TARGET}/*gcc.git~master_rev_${BADSHA1}-stage2/ -name "*.sum"`
-bad_nb_fail=$(cat $sums | grep -wc FAIL)
-bad_nb_pass=$(cat $sums | grep -wc PASS)
+badsums=`find builds/*/${TARGET}/*gcc.git~master_rev_${BADSHA1}-stage2/ -name "*.sum"`
+bad_nb_fail=$(cat $badsums | grep -wc FAIL)
+bad_nb_pass=$(cat $badsums | grep -wc PASS)
# make sure BAD has more failures than GOOD
if [ $bad_nb_fail -le $good_nb_fail ]; then
echo "ERROR: BAD ($BADGIT) does not have more failures ($bad_nb_fail) than GOOD ($GOODGIT) ($good_nb_fail)" | tee -a $MAILBODY
+
+ goodlogs=$(echo $goodsums | sed 's/.sum/.log/g')
+ echo "Contents of GOOD .log ($goodlogs)"
+ cat $goodlogs
+
+ badlogs=$(echo $badsums | sed 's/.sum/.log/g')
+ echo "Contents of BAD .log ($badlogs)"
+ cat $badlogs
exit 1
fi