summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 $@