summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtcwg-update-lnt-results.sh22
1 files changed, 9 insertions, 13 deletions
diff --git a/tcwg-update-lnt-results.sh b/tcwg-update-lnt-results.sh
index 1f89fe1b..2fc8ce45 100755
--- a/tcwg-update-lnt-results.sh
+++ b/tcwg-update-lnt-results.sh
@@ -27,24 +27,20 @@ if $verbose; then set -x; fi
declare -g tmpdirs=()
trap 'rm -rf "${tmpdirs[@]}"' EXIT
+# Get ${lnt_projects[@]}
+# shellcheck source=tcwg-lnt/tcwg-lnt-01/config
+. $scripts/tcwg-lnt/$lnt_config/config
+
update_one_lnt_results_project()
{
local project=$1
local config=$2
- # Early exit if unsupported
- case "$project" in
- tcwg_*_check*)
- lnt_model="tcwg_check"
- ;;
- tcwg_bmk*)
- lnt_model="tcwg_bmk"
- ;;
- *)
- # Do not update anything else so far
- return
- ;;
- esac
+ local lnt_model="${lnt_projects[$project]-}"
+ if [ "$lnt_model" = "" ]; then
+ echo "Skipping unknown project: $project"
+ return 0
+ fi
# Update base-artifacts with project/config
branch="linaro-local/ci/$project/$config"