diff options
author | Sam James <sam@gentoo.org> | 2022-11-22 01:29:16 +0000 |
---|---|---|
committer | Heiko Becker <mail@heiko-becker.de> | 2022-11-25 19:16:24 +0100 |
commit | 574ee6aa59157baa5a5da462415d7bd48c108554 (patch) | |
tree | e15c883ca6fd325be1c951620a554694cdbc9e77 | |
parent | 2e3e9ec52e5082eb68b873fc652031bc0771340c (diff) | |
download | wgetpaste-574ee6aa59157baa5a5da462415d7bd48c108554.tar.gz |
test: respect TMPDIR in mktemp (pass --tmpdir)
Signed-off-by: Sam James <sam@gentoo.org>
-rwxr-xr-x | test/test.sh | 2 | ||||
-rwxr-xr-x | test/test_ansi.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/test.sh b/test/test.sh index 5652baa..4f03070 100755 --- a/test/test.sh +++ b/test/test.sh @@ -7,7 +7,7 @@ # Don't assume the test is being run from the same directory as the script TEST_DIR="$(dirname "$0")" TEST_FILE="$TEST_DIR/test.txt" -DL_DIR="$(mktemp -q -d /tmp/wgetpaste_test.XXXXX)" +DL_DIR="$(mktemp -q --tmpdir -d wgetpaste_test.XXXXX)" # Services to hard skip # Pre-declare as map to maintain type even if empty # key -> value := service -> reason diff --git a/test/test_ansi.sh b/test/test_ansi.sh index ce01c0c..6b559f9 100755 --- a/test/test_ansi.sh +++ b/test/test_ansi.sh @@ -9,7 +9,7 @@ TEST_DIR="$(dirname "$0")" ANSI_FILE="$TEST_DIR/red.txt" NOANSI_FILE="$TEST_DIR/red_no_ansi.txt" -DL_DIR="$(mktemp -q -d /tmp/wgetpaste_test_ansi.XXXXX)" +DL_DIR="$(mktemp -q --tmpdir -d wgetpaste_test_ansi.XXXXX)" # Services to hard skip # Pre-declare as map to maintain type even if empty # key -> value := service -> reason |