From 55a857de6a40c6c35396c29ed32f127ca2ead13c Mon Sep 17 00:00:00 2001 From: Aleksander Mistewicz Date: Thu, 12 Jan 2017 13:33:05 +0100 Subject: [PATCH] Add TARGET_LIST to tsp/common.sh List of used target types is stored in a single place. Change-Id: Ia22639a708ebfcadfee24b6c3c93cc5561979987 Signed-off-by: Aleksander Mistewicz --- tsp/common.sh | 7 +++++++ tsp/jobs/trigger_downloads.sh | 2 +- tsp/stop.sh | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/tsp/common.sh b/tsp/common.sh index b60830b..ca6bbe4 100755 --- a/tsp/common.sh +++ b/tsp/common.sh @@ -27,6 +27,13 @@ die() { exit "${2:-1}" } +# Supported targets are: +# * artik5, headless-artik5, artik10, headless-artik10 +# * minnow32, minnow64 +# * odroid +# * mbr64 +TARGET_LIST="artik10 headless-artik5 mbr64 minnow64 minnow32 odroid" + test -z "${TSP_DIR}" || export TS_ONFINISH="${TSP_DIR}/scripts/log.sh" WS="${HOME}/ws" diff --git a/tsp/jobs/trigger_downloads.sh b/tsp/jobs/trigger_downloads.sh index 017a2f9..494226d 100755 --- a/tsp/jobs/trigger_downloads.sh +++ b/tsp/jobs/trigger_downloads.sh @@ -77,7 +77,7 @@ do ln -Tsf "${WS_DOWNLOAD}/${dwn_next}" "${SNAPSHOT_WS_DOWNLOAD_NEW}-$(url2profile "${url}")" ;; esac - for target in "artik10" "headless-artik5" "mbr64" "minnow64" "minnow32" "odroid" + for target in ${TARGET_LIST} do next=$((next+1)) # prepare download directory diff --git a/tsp/stop.sh b/tsp/stop.sh index 24dd63b..f8c5663 100755 --- a/tsp/stop.sh +++ b/tsp/stop.sh @@ -56,14 +56,14 @@ done echo "Stop runner queues" echo "Queued tests will be lost" -for target in "odroid" "minnow32" "minnow64" +for target in ${TARGET_LIST} do remove_queued tsrun_target $target done echo "Wait for last tests to finish and kill server" -for target in "odroid" "minnow32" "minnow64" +for target in ${TARGET_LIST} do echo "[$target] wait for running job" tsrun_target $target -w -- 2.7.4