From 1a413eaaf77cdf3f157cac5828837b88203caab2 Mon Sep 17 00:00:00 2001 From: Si Beaumont Date: Fri, 15 Sep 2023 18:40:58 +0100 Subject: [PATCH] Run integration test in $TMPDIR or /tmp --- scripts/run-integration-test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/run-integration-test.sh b/scripts/run-integration-test.sh index f9928287..fae9d366 100644 --- a/scripts/run-integration-test.sh +++ b/scripts/run-integration-test.sh @@ -24,7 +24,7 @@ JQ_BIN=${JQ_BIN:-$(command -v jq)} || fatal "JQ_BIN unset and no jq on PATH" CURRENT_SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" REPO_ROOT="$(git -C "${CURRENT_SCRIPT_DIR}" rev-parse --show-toplevel)" -TMP_DIR=$(mktemp -d "${PWD}/tmp.$(basename "$0").XXXXXXXXXX.noindex") +TMP_DIR=$(/usr/bin/mktemp -d -p "${TMPDIR-/tmp}" "$(basename "$0").XXXXXXXXXX") PACKAGE_PATH=${PACKAGE_PATH:-${REPO_ROOT}}