diff options
author | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2019-12-03 17:52:21 +0000 |
---|---|---|
committer | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2019-12-05 09:54:53 +0000 |
commit | b21add9f4a76a127f1a6e653e709c74bdc7a4ac3 (patch) | |
tree | 6a7bacf7ec5ebcc2f176a9549090b8c2afc7a01c /tcwg_kernel-build.sh | |
parent | 1877fdea5f4645ea4977a14fcb4d3c6a6b1df26a (diff) |
tcwg_kernel-build.sh: Implement rr[breakup_updated_components] hook
... and fix tcwg_bmk-build.sh's hook along the way. Bash's read()
accepts only complete lines, so we need to add newlines (using echo).
Change-Id: I62950c598872dd23bef4aea3d981f09c1fa14945
Diffstat (limited to 'tcwg_kernel-build.sh')
-rwxr-xr-x | tcwg_kernel-build.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tcwg_kernel-build.sh b/tcwg_kernel-build.sh index 8d501738..2be359ec 100755 --- a/tcwg_kernel-build.sh +++ b/tcwg_kernel-build.sh @@ -248,6 +248,26 @@ no_regression_p () ) } +# Implement rr[breakup_updated_components] hook. +tcwg_kernel_breakup_updated_components () +{ + ( + set -euf -o pipefail + + # Linux changes tend to cause the most regressions. + # Breakup updated components into linux and the rest of components + # to reduce the number of builds. + if print_updated_components "\n" | grep -q "^linux\$"; then + echo "linux" + print_updated_components "\n" | grep -v "^linux\$" | tr '\n' ' ' | sed -e "s/ \$//g" + echo + else + print_updated_components "\n" + fi + ) +} +rr[breakup_updated_components]=tcwg_kernel_breakup_updated_components + run_step stop_on_fail -10 reset_artifacts case "${rr[toolchain]}" in gnu) |