diff options
author | David Spickett <david.spickett@linaro.org> | 2020-04-30 14:27:44 +0100 |
---|---|---|
committer | David Spickett <david.spickett@linaro.org> | 2020-04-30 14:32:18 +0100 |
commit | 76d9d1354e90b2fc9474d1c140b60b248a30aaf4 (patch) | |
tree | a821f5128ff18964039fce96348c1798221348e0 /tcwg_kernel-build.sh | |
parent | b687c959bda4ad66a6ea330682ba8e1745ff38b7 (diff) |
round-robin.sh/tcwg_kernel-build.sh
When looking for errors, exclude other
uses of grep looking for errors.
Without this we get job names with the
entire grep line in the title.
We could still get spurious names
if there were no error lines found,
but at least they'll be shorter.
Change-Id: Iceb0279dff2bb51ff59977efaf3f0d523c91ce7c
Diffstat (limited to 'tcwg_kernel-build.sh')
-rwxr-xr-x | tcwg_kernel-build.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tcwg_kernel-build.sh b/tcwg_kernel-build.sh index 14c24489..1099e87c 100755 --- a/tcwg_kernel-build.sh +++ b/tcwg_kernel-build.sh @@ -251,11 +251,12 @@ no_regression_p () # - "^ERROR:" detects linker errors # - ": undefined reference" detects missing symbols during linking # - "] Error " detects GNU make errors + # Then grep for "grep" to exclude other uses of this search. # shellcheck disable=SC2154 # (defined by init_step in jenkins-helpers) 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/^/# /") +$(cat $new_artifacts/console.log | sed -e 's/"[^"]*"//g' | grep " error:\|^ERROR:\|: undefined reference\|\] Error " | grep -v "grep" | head | sed -e "s/^/# /") EOF case "$linux_n_obj:$base_linux_n_obj" in |