From 488650195405f168172e9d774d2d3868aee3ab3f Mon Sep 17 00:00:00 2001 From: Maxim Kuvyrkov Date: Mon, 2 Aug 2021 15:05:55 +0000 Subject: tcwg_bmk-build.sh: Update parameters to benchmark() Change-Id: I2a54ef4a1c7261f3fe20cee1a5febaf589b28351 --- tcwg_bmk-build.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tcwg_bmk-build.sh b/tcwg_bmk-build.sh index 8f211f6f..047006c4 100755 --- a/tcwg_bmk-build.sh +++ b/tcwg_bmk-build.sh @@ -195,7 +195,7 @@ benchmark () ( set -euf -o pipefail - local bmk_cflags="$1" + local bmk_cflags="$2" local results_id_file="$3" sanity_check_pwd @@ -696,8 +696,8 @@ case "${#cflags[@]}" in # Don't bisect benchmark build/run failures in *-vs-* configurations. # Bisections happen only for regressions with build scores >=0, # which will happen if benchmark "${cflags[1]}" succeeds. - run_step skip_on_fail -1 benchmark "${cflags[0]}" -- ${rr[top_artifacts]}/results_id-1 - run_step skip_on_fail 0 benchmark "${cflags[1]}" -- ${rr[top_artifacts]}/results_id-2 + run_step skip_on_fail -1 benchmark -- "${cflags[0]}" ${rr[top_artifacts]}/results_id-1 + run_step skip_on_fail 0 benchmark -- "${cflags[1]}" ${rr[top_artifacts]}/results_id-2 # Set final "build" score to "1" for compatibility with older results run_step skip_on_fail 1 true # shellcheck disable=SC2154 @@ -708,7 +708,7 @@ case "${#cflags[@]}" in # Bisect benchmark build/run failures in non-vs configurations. # Set score to "0" with "true". run_step skip_on_fail 0 true - run_step skip_on_fail 1 benchmark "${cflags[0]}" -- ${rr[top_artifacts]}/results_id + run_step skip_on_fail 1 benchmark -- "${cflags[0]}" ${rr[top_artifacts]}/results_id rr[no_regression_p]=no_regression_to_base_p run_step reset_on_fail x check_regression ;; -- cgit v1.2.3