summaryrefslogtreecommitdiff
path: root/round-robin.sh
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2020-04-01 11:38:23 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2020-04-01 11:41:33 +0000
commit8324d749177d43dd827840b3e1a53794b1a7724b (patch)
tree748068ec207ff819222274d87886dd69f8c6767c /round-robin.sh
parent00214a44379ca4dd9a9ad63aec1df0afe443cac8 (diff)
tcwg_bmk-build.sh: Fix spurious failures
... due to stray results.regressions file. This file can be generated by successful no_build_regression_p() invocation and contain harmless errors from toolchain build process. Change-Id: I237e09cd612c0b96d27d765de9bcd28f5ec51573
Diffstat (limited to 'round-robin.sh')
-rw-r--r--round-robin.sh17
1 files changed, 8 insertions, 9 deletions
diff --git a/round-robin.sh b/round-robin.sh
index c1884190..d21d876b 100644
--- a/round-robin.sh
+++ b/round-robin.sh
@@ -480,18 +480,17 @@ no_build_regression_p ()
build_result_ref=$(grep -v "^#" $ref_artifacts/results | tail -n1)
build_result_new=$(grep -v "^#" $new_artifacts/results | tail -n1)
- # 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 > $run_step_artifacts/results.regressions <<EOF
+ if [ $build_result_new -lt $build_result_ref ]; then
+ # 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 > $run_step_artifacts/results.regressions <<EOF
# First few build errors in logs:
$(cat $new_artifacts/console.log | sed -e 's/"[^"]*"//g' | grep " error:\|^ERROR:\|: undefined reference\|\] Error " | head | sed -e "s/^/# /")
EOF
-
- if [ $build_result_new -lt $build_result_ref ]; then
return 1
fi
return 0