summaryrefslogtreecommitdiff
path: root/tcwg_kernel-build.sh
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2020-02-14 13:45:57 +0000
committerChristophe Lyon <christophe.lyon@linaro.org>2020-02-18 14:12:27 +0000
commitba03ff8ab02f3754c40c2eefff21bdd5b3fee1bc (patch)
treef1cd8b7b94dcfdcfc552ecc7bed38c127ea2445b /tcwg_kernel-build.sh
parentb8d32cdee5ac1f71f84c5abf86708ad5cca8fbd3 (diff)
Round-robin scripts: improve regression email contents
When a regression occurs after the build phase, don't include harmless errors from the the build stage, and provide info from the test phase. Change-Id: I75ce76e81ecbda4492bb49e7d765c25cac599f12
Diffstat (limited to 'tcwg_kernel-build.sh')
-rwxr-xr-xtcwg_kernel-build.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/tcwg_kernel-build.sh b/tcwg_kernel-build.sh
index 7de64f3f..f23bae86 100755
--- a/tcwg_kernel-build.sh
+++ b/tcwg_kernel-build.sh
@@ -223,6 +223,17 @@ no_regression_p ()
base_linux_n_obj=$(tail -n1 $ref_artifacts/results)
fi
+ # In log scan for errors below
+ # - sed -e 's/"[^"]*"//g' -- removes quoted "error: app diagnostics" strings
+ # - " error:" detects compiler errors from GCC and Clang (including GCC ICEs)
+ # - "^ERROR:" detects linker errors
+ # - ": undefined reference" detects missing symbols during linking
+ # - "] Error " detects GNU make errors
+ cat > $new_artifacts/regressions.txt <<EOF
+First few build errors in logs:
+$(cat $new_artifacts/console.log | sed -e 's/"[^"]*"//g' | grep " error:\|^ERROR:\|: undefined reference\|\] Error " | head)
+EOF
+
case "$linux_n_obj:$base_linux_n_obj" in
boot:*) return 0 ;;
*:boot) return 1 ;;