diff options
author | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2020-01-15 08:40:17 +0000 |
---|---|---|
committer | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2020-01-15 08:40:17 +0000 |
commit | aa64572b879c27de1948f7c3582b21c5eadf52c0 (patch) | |
tree | e8075e105561a2874646a2b19e50777c21f83dab /tcwg_bmk-build.sh | |
parent | 69a164db12e564614cd41d3b88008228651ca77b (diff) |
tcwg_bmk-build.sh: Pass extra params to bisect in a generic way
Change-Id: Ie3c2f99e7ec5359d21529db659ac857d3a7750cf
Diffstat (limited to 'tcwg_bmk-build.sh')
-rwxr-xr-x | tcwg_bmk-build.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tcwg_bmk-build.sh b/tcwg_bmk-build.sh index 0c0d9c98..6ee44587 100755 --- a/tcwg_bmk-build.sh +++ b/tcwg_bmk-build.sh @@ -389,22 +389,25 @@ no_regression_to_base_p () compare_results "$1/results_id" "$2/results_id" "" - local bmk symbol result status + local bmk symbol result status prev_bmk local -a bisect_bmks # Read result lines from <(tail -n +2 ...) below. # "-n +2" is to skip the header line. Set $status to "1" if there is # a regression. status=0 + prev_bmk="" while IFS=, read -r bmk symbol result; do if ! [ "$result" -le "50" ]; then echo "Regression in $bmk,$symbol" status=1 - bisect_bmks+=("$bmk") + if [ x"$bmk" != x"$prev_bmk" ]; then + bisect_bmks+=("++benchmarks" "$bmk") + prev_bmk="$bmk" + fi fi done < <(tail -n +2 $run_step_artifacts/results-compare.csv) - bisect_bmks=($(echo "${bisect_bmks[@]}" | sort -u)) - echo "benchmarks=${bisect_bmks[@]}" > $run_step_artifacts/extra-bisect-params + echo "extra_build_params=${bisect_bmks[@]}" > $run_step_artifacts/extra-bisect-params return $status ) } |