aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-06-22 18:18:05 -0300
committerEuAndreh <eu@euandre.org>2021-06-22 18:24:15 -0300
commitd5297540b17e1fe8ff0971bbc06184eb29c080e6 (patch)
tree6c72564b5ea06dd8ca0db05f4a68592bd544ff00 /tests
parentsrc/git-permalink.sh.in, tests/remotes.sh: Address ShellCheck issues (diff)
downloadgit-permalink-d5297540b17e1fe8ff0971bbc06184eb29c080e6.tar.gz
git-permalink-d5297540b17e1fe8ff0971bbc06184eb29c080e6.tar.xz
aux/tests-lib.sh: Add uuid() function, use it on tests
Diffstat (limited to 'tests')
-rwxr-xr-xtests/install-uninstall.sh2
-rwxr-xr-xtests/remotes.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/install-uninstall.sh b/tests/install-uninstall.sh
index f4340e2..c0b402a 100755
--- a/tests/install-uninstall.sh
+++ b/tests/install-uninstall.sh
@@ -3,7 +3,7 @@ set -u
. aux/tests-lib.sh
-TEST_DESTDIR="$PWD/tests/destdirs/$(uuidgen)"
+TEST_DESTDIR="$PWD/tests/destdirs/$(uuid)"
PATH="$TEST_DESTDIR/usr/local/bin:$PATH"
test_install_uninstall_targets() {
diff --git a/tests/remotes.sh b/tests/remotes.sh
index 06d3fdc..0b52513 100755
--- a/tests/remotes.sh
+++ b/tests/remotes.sh
@@ -3,12 +3,12 @@ set -u
. aux/tests-lib.sh
-TEST_PREFIX="$PWD/tests/prefix/$(uuidgen)"
+TEST_PREFIX="$PWD/tests/prefix/$(uuid)"
make PREFIX="$TEST_PREFIX" install 1>/dev/null
PATH="$PWD/tests:$TEST_PREFIX/bin:$PATH"
new_repo() {
- REPO="$PWD/tests/remotes/$(uuidgen)"
+ REPO="$PWD/tests/remotes/$(uuid)"
mkdir -p "$REPO"
cd "$REPO" || exit 1
git init > /dev/null