diff options
Diffstat (limited to 'round-robin.sh')
-rw-r--r-- | round-robin.sh | 17 |
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 |