summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2021-09-14 14:38:50 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2021-09-14 14:38:50 +0000
commit7b98d591f2deb1052a1c0fd895d769719f9d06b1 (patch)
tree1a247544c154ee79676a06517ab06f761dfa2e0f
parent692947065e5fae528af249b14e77de58571d9b73 (diff)
round-robin.sh: Fixup error reporting after console.log compression
Change-Id: Ie18a956adcbe22b3c6017c81132e16026a150ecd
-rw-r--r--round-robin.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/round-robin.sh b/round-robin.sh
index 1b20af14..4f4db645 100644
--- a/round-robin.sh
+++ b/round-robin.sh
@@ -556,6 +556,8 @@ no_build_regression_p ()
build_result_new=$(grep -v "^#" $new_artifacts/results | tail -n1)
if [ $build_result_new -lt $build_result_ref ]; then
+ local last_log
+ last_log=$(find $new_artifacts/ -name console.log.xz | sort -g | 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)
@@ -565,7 +567,7 @@ no_build_regression_p ()
# Then grep for "grep" to exclude other uses of this search.
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 " | grep -v "grep" | head | sed -e "s/^/# /")
+$(xzcat $last_log | sed -e 's/"[^"]*"//g' | grep " error:\|^ERROR:\|: undefined reference\|\] Error " | grep -v "grep" | head | sed -e "s/^/# /")
EOF
return 1
fi