Commit 8edd013e authored by Vojtěch Horký's avatar Vojtěch Horký
Browse files

Allow non-/dev/shm temp files

parent f80fff22
......@@ -42,10 +42,10 @@ nswi177_setup() {
NSWI177_MAIN_SCRIPT_ABS="$( realpath "${NSWI177_MAIN_SCRIPT}" 2>/dev/null || echo "${NSWI177_MAIN_SCRIPT}" )"
# Try to setup temporary directory as tmpfs
if [[ -d /dev/shm ]] && [[ -w /dev/shm ]]; then
if [[ -d /dev/shm ]] && [[ -w /dev/shm ]] && "${NSWI177_USE_SHM_TEMP:-true}"; then
NSWI177_TEMP_BASE="$( mktemp -d -p /dev/shm/ nswi177-bats-XXXXXXXXXX )"
else
NSWI177_TEMP_BASE="$( make_temp )"
NSWI177_TEMP_BASE="$( mktemp -d )"
fi
NSWI177_TEMP="${NSWI177_TEMP_BASE}/data"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment