summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrathamesh Kulkarni <prathamesh.kulkarni@linaro.org>2022-06-30 15:17:04 +0530
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2022-07-01 14:20:49 +0000
commitb733819d2ef3e2336b2ec7ef300c8508a9bf9eab (patch)
treeaf557a1e1dcce5071f102821f4725e1ae4c71b1d
parentea3cd249d775f01cabe301e19985d098529bd6ec (diff)
Add value "ignore" for update_baseline to avoid affecting baseline.
Change-Id: I2bda7ecf35977c06bb6e3fa7fc2abab20b8ad7e5
-rw-r--r--round-robin.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/round-robin.sh b/round-robin.sh
index 68ceaef7..3408bad0 100644
--- a/round-robin.sh
+++ b/round-robin.sh
@@ -36,7 +36,8 @@ declare -gA rr
# ignored) as new commit to base-artifacts, and update baseline
# branches. This is useful for user projects, e.g., to generate
# historical results for several toolchain versions.
-#rr[update_baseline]=update/reset/init/push
+# - ignore: Do not affect baseline. Useful for developer testing.
+#rr[update_baseline]=update/reset/init/push/ignore
# Target architecture to build for: arm or aarch64.
#rr[target]="$target"
@@ -752,7 +753,9 @@ update_baseline ()
local amend=""
- if [ x"${rr[update_baseline]}" = x"init" ]; then
+ if [ x"${rr[update_baseline]}" = x"ignore" ]; then
+ return
+ elif [ x"${rr[update_baseline]}" = x"init" ]; then
amend="--amend"
elif [ x"${rr[update_baseline]}" = x"push" ]; then
:
@@ -842,6 +845,10 @@ push_baseline ()
(
set -euf -o pipefail
+ if [ x"${rr[update_baseline]}" = x"ignore" ]; then
+ return
+ fi
+
git_init_linaro_local_remote base-artifacts baseline false
git_push base-artifacts baseline ${rr[baseline_branch]}