summaryrefslogtreecommitdiff
path: root/tcwg_gnu-build.sh
diff options
context:
space:
mode:
authorDavid Spickett <david.spickett@linaro.org>2020-04-22 15:24:49 +0100
committerDavid Spickett <david.spickett@linaro.org>2020-04-23 12:54:33 +0100
commit52eb5a521c093601e3fba856599288bad7a5d96f (patch)
tree0e8a0c567c9d727becf411078f44cfc619c5f954 /tcwg_gnu-build.sh
parent2382c087b5f0d51a4556c8c62f4723ab5a0ab7c9 (diff)
Shellcheck fixes round 2
Also update the sanity check script to include .job files. Change-Id: Ibf72d9ff346ff7b012d4e282a6ac8f3b7e73590d
Diffstat (limited to 'tcwg_gnu-build.sh')
-rwxr-xr-xtcwg_gnu-build.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/tcwg_gnu-build.sh b/tcwg_gnu-build.sh
index 5447af6b..ccecf31a 100755
--- a/tcwg_gnu-build.sh
+++ b/tcwg_gnu-build.sh
@@ -11,13 +11,18 @@ convert_args_to_variables "$@"
obligatory_variables rr[ci_config]
# 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
@@ -29,13 +34,16 @@ 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) rr[components]="binutils" ;;
+ check_binutils)
+ # shellcheck disable=SC2154
+ rr[components]="binutils" ;;
*) rr[components]="gcc" ;;
esac
@@ -107,6 +115,8 @@ no_regression_p ()
# not be the case when we are just checking binutils)
clone_or_update_repo gcc master git://gcc.gnu.org/git/gcc.git
fi
+ # (defined by init_step in jenkins-helpers)
+ # shellcheck disable=SC2154
gcc/contrib/compare_tests $sumfiles_base $sumfiles_new \
| sed -e "s/^/# /" | tee $run_step_artifacts/results.regressions &
res=0 && wait $! || res=$?