summaryrefslogtreecommitdiff
path: root/tcwg_gnu-build.sh
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2020-06-03 13:45:49 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2020-06-09 07:55:53 +0000
commit1687f16a4c10cfd05fd2a60bb9b36093bd40870b (patch)
treec561feb593027834dfbbaa4d52013ba5a7e62209 /tcwg_gnu-build.sh
parent9c6fd09e23cac3ffcc8012240217edbb726e1759 (diff)
tcwg_gnu-build.sh: Fix shellcheck warnings
Change-Id: I6735863b1937995e6e4883e0a811376222219bf4
Diffstat (limited to 'tcwg_gnu-build.sh')
-rwxr-xr-xtcwg_gnu-build.sh11
1 files changed, 2 insertions, 9 deletions
diff --git a/tcwg_gnu-build.sh b/tcwg_gnu-build.sh
index 03aae496..28fd2f78 100755
--- a/tcwg_gnu-build.sh
+++ b/tcwg_gnu-build.sh
@@ -11,20 +11,16 @@ scripts=$(dirname $0)
convert_args_to_variables "$@"
obligatory_variables rr[ci_config]
+declare -A rr
# Execution mode: baseline, bisect, jenkins-full
-# shellcheck disable=SC2154
rr[mode]="${rr[mode]-baseline}"
# Set custom revision for one of the projects, and use baseline revisions
# for all other projects.
-# shellcheck disable=SC2154
rr[ci_project]="${rr[ci_project]-tcwg_gnu}"
-# shellcheck disable=SC2154
rr[baseline_branch]="${rr[baseline_branch]-linaro-local/ci/${rr[ci_project]}/${rr[ci_config]}}"
-# shellcheck disable=SC2154
rr[update_baseline]="${rr[update_baseline]-update}"
-# shellcheck disable=SC2154
rr[top_artifacts]="${rr[top_artifacts]-$(pwd)/artifacts}"
# Resolve top_artifacts to absolute dir because some of the subsequent
@@ -36,16 +32,13 @@ rr[top_artifacts]=$(abs_path "${rr[top_artifacts]}")
IFS=- read -a ci_config <<EOF
${rr[ci_config]}
EOF
-# shellcheck disable=SC2154
rr[target]="native"
# type_of_test contains the type of action to perform in this test
# campaign: bootstrap, bootstrap_lto, check_binutils, ....
type_of_test=${type_of_test-${ci_config[3]}}
case "$type_of_test" in
- check_binutils)
- # shellcheck disable=SC2154
- rr[components]="binutils" ;;
+ check_binutils) rr[components]="binutils" ;;
*) rr[components]="gcc" ;;
esac