summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2022-08-05 12:58:48 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2022-08-05 12:58:48 +0000
commit4d4da8f0d8cf05e6ebca9a66e86f3118ef4a4814 (patch)
treed4da7922dab57835d8a92826ee96f96b92992fde
parent45165caf2674e2e9bccdedffb97af8bd0e7036ca (diff)
tcwg-report-stale-rr-jobs.sh: Use ${rr[]} instead of ${debug[]}
... to avoid "declare -A debug" whenever manifest is sourced. Change-Id: I00a2ceea311f6510fedb26e98ae1423945b9115d
-rw-r--r--round-robin.sh2
-rwxr-xr-xtcwg-report-stale-rr-jobs.sh8
2 files changed, 5 insertions, 5 deletions
diff --git a/round-robin.sh b/round-robin.sh
index ef63c20a..42737c70 100644
--- a/round-robin.sh
+++ b/round-robin.sh
@@ -183,7 +183,7 @@ clone_repo ()
cat <<EOF | manifest_out
rr[${project}_rev]=$cur_rev
-debug[${project}_date]=$debug_project_date
+rr[debug_${project}_date]=$debug_project_date
EOF
)
}
diff --git a/tcwg-report-stale-rr-jobs.sh b/tcwg-report-stale-rr-jobs.sh
index 032cf92c..35d65469 100755
--- a/tcwg-report-stale-rr-jobs.sh
+++ b/tcwg-report-stale-rr-jobs.sh
@@ -363,16 +363,16 @@ classify_no_change_in_sources ()
download_project_file ${test['run_nb']}/artifact/artifacts/jenkins/manifest.sh
# shellcheck disable=SC2034
- declare -A rr debug
+ declare -A rr
# shellcheck disable=SC1090
source ${test['run_nb']}/artifact/artifacts/jenkins/manifest.sh
# set diag if appopriate
pjt=$(echo ${test['gitproject']}|cut -d- -f1)
- echo "if [\${debug[${pjt}_date]+abc} ]; then"
- if [ "${debug[${pjt}_date]+abc}" ]; then
+ echo "if [\${rr[debug_${pjt}_date]+abc} ]; then"
+ if [ "${rr[debug_${pjt}_date]+abc}" ]; then
local last_commit_date start_warn_date
- last_commit_date="${debug[${pjt}_date]}"
+ last_commit_date="${rr[debug_${pjt}_date]}"
start_warn_date=$(date +%s --date="$days_limit days ago")
if [ "$last_commit_date" -lt "$start_warn_date" ]; then