summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Mistewicz <a.mistewicz@samsung.com>2017-01-12 12:33:05 (GMT)
committerAleksander Mistewicz <a.mistewicz@samsung.com>2017-03-29 10:48:09 (GMT)
commit55a857de6a40c6c35396c29ed32f127ca2ead13c (patch)
tree6f1386e348451e5034f968f9d0ca8464eeb00786
parent39889bad953d30a7fe47d7429706a16fa3eeb7b2 (diff)
downloadmajor-55a857de6a40c6c35396c29ed32f127ca2ead13c.zip
major-55a857de6a40c6c35396c29ed32f127ca2ead13c.tar.gz
major-55a857de6a40c6c35396c29ed32f127ca2ead13c.tar.bz2
Add TARGET_LIST to tsp/common.shrefs/changes/23/121923/1
List of used target types is stored in a single place. Change-Id: Ia22639a708ebfcadfee24b6c3c93cc5561979987 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
-rwxr-xr-xtsp/common.sh7
-rwxr-xr-xtsp/jobs/trigger_downloads.sh2
-rwxr-xr-xtsp/stop.sh4
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