aboutsummaryrefslogtreecommitdiff
path: root/tests/lib.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-01-20 23:32:37 -0300
committerEuAndreh <eu@euandre.org>2022-01-21 00:00:17 -0300
commitb4d4c2d50a5072b3c80483e6392fc2b686a355b0 (patch)
tree77bcad77cb4a99a9a5d2a3ab90633724c1118ab1 /tests/lib.sh
parentAdd diacritic and spaces to mk{s,d}temp paths to enforce that everything work... (diff)
downloadgit-permalink-b4d4c2d50a5072b3c80483e6392fc2b686a355b0.tar.gz
git-permalink-b4d4c2d50a5072b3c80483e6392fc2b686a355b0.tar.xz
{aux,tests}/lib.sh: Use UUIDs for tmpnames to remove dependency on m4
Diffstat (limited to 'tests/lib.sh')
-rwxr-xr-xtests/lib.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/lib.sh b/tests/lib.sh
index 0b4bf52..15fe331 100755
--- a/tests/lib.sh
+++ b/tests/lib.sh
@@ -127,8 +127,7 @@ uuid() {
}
tmpname() {
- TEMPLATE="${TMPDIR:-/tmp}/m4-tmpname.diacritic á and spaces."
- echo 'mkstemp(template)' | m4 -D template="$TEMPLATE"
+ echo "${TMPDIR:-/tmp}/uuid-tmpname.diacritic á and spaces.$(uuid)"
}
mkstemp() {