summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2019-02-12 08:37:08 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2019-02-18 15:30:58 +0000
commit5cbc7baf0af498c6b57789ebc9f41100e6a2c3eb (patch)
treecc0b9d9f07aed14e88bee5e159410ed151384ef2
parente7b992985284c335eaec9a333c0a80c92f7a93ec (diff)
tcwg_kernel-bisect.sh: Detect linker and make errors in the logs
"ERROR:" detects linker errors and "] Error " detects make errors Change-Id: I91fe470d2cf81487945e2e55796c0dfd3f5dc74c
-rwxr-xr-xtcwg_kernel-bisect.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/tcwg_kernel-bisect.sh b/tcwg_kernel-bisect.sh
index 8ab8a014..bac608bf 100755
--- a/tcwg_kernel-bisect.sh
+++ b/tcwg_kernel-bisect.sh
@@ -268,6 +268,10 @@ Could not identify regression in $current_project for CI configuration ${rr[ci_c
EOF
fi
+# In log scan for errors below
+# - ": error:" detects compiler errors from GCC and Clang
+# - "^ERROR:" detects linker errors
+# - "] Error " detects GNU make errors
cat >> $artifacts/jenkins/mail-body.txt <<EOF
Configuration details:
$(cat $artifacts/manifests/build-baseline.sh | grep '_url]\|_branch]' | grep -v '="no_')
@@ -279,7 +283,7 @@ to (for $bad_name == $bad_sha1)
$(cat $artifacts/build-$bad_sha1/results)
First few errors in logs of $bad_name:
-$(grep ": error:" $artifacts/build-$bad_sha1/console.log | head)
+$(grep ": error:\|^ERROR:\|\] Error " $artifacts/build-$bad_sha1/console.log | head)
Artifacts of $good_name build: ${BUILD_URL}artifact/$rel_artifacts/build-$good_sha1/
Artifacts of $bad_name build: ${BUILD_URL}artifact/$rel_artifacts/build-$bad_sha1/