summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Mistewicz <a.mistewicz@samsung.com>2017-12-08 12:16:07 +0100
committerAleksander Mistewicz <a.mistewicz@samsung.com>2017-12-08 12:19:25 +0100
commit9a5f5887ec0c2ada609f01e37c6962474ce0a149 (patch)
treec667a89c66aced01b64e210c3c92e42c03918947
parente79576f94627b350ecf488492e32907ec21ea266 (diff)
downloadmajor-9a5f5887ec0c2ada609f01e37c6962474ce0a149.tar.gz
major-9a5f5887ec0c2ada609f01e37c6962474ce0a149.tar.bz2
major-9a5f5887ec0c2ada609f01e37c6962474ce0a149.zip
Parametrize tsp log directory
Change-Id: I887329b94982c4bf7c12d526910679fcfe938bdb
-rwxr-xr-xtsp/common.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/tsp/common.sh b/tsp/common.sh
index a6a7a76..a59c069 100755
--- a/tsp/common.sh
+++ b/tsp/common.sh
@@ -66,10 +66,12 @@ TSP_WWW="${TSP_DIR}/www"
test -d "${WS_PUBLISH_WWW}" || cp -r "${TSP_WWW}" "${WS_PUBLISH_WWW}"
-TMP_POLL="/tmp/tl-master-poll"
-TMP_MASTER="/tmp/tl-master"
-TMP_PWB="/tmp/tl-pwb"
-TMP_PWB_RESULTS="/tmp/tl-pwb-results"
+TSP_LOG_DIR="/tmp/"
+
+TMP_POLL="${TSP_LOG_DIR}/tl-master-poll"
+TMP_MASTER="${TSP_LOG_DIR}/tl-master"
+TMP_PWB="${TSP_LOG_DIR}/tl-pwb"
+TMP_PWB_RESULTS="${TSP_LOG_DIR}/tl-pwb-results"
test -d "$TMP_POLL" || mkdir "$TMP_POLL"
test -d "$TMP_MASTER" || mkdir "$TMP_MASTER"
@@ -107,7 +109,7 @@ post_prom() {
tsrun_target() {
test -n "$1" || die "Missing argument: target"
- TMPDIR="/tmp/tl-runner-$1"
+ TMPDIR="${TSP_LOG_DIR}/tl-runner-$1"
test -d "$TMPDIR" || mkdir "$TMPDIR"
shift
TMPDIR="$TMPDIR" TS_SLOTS=1 tsp $@