summaryrefslogtreecommitdiff
path: root/tests/assert-uninstall.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-11-13 09:24:34 -0300
committerEuAndreh <eu@euandre.org>2023-11-13 09:24:34 -0300
commitd0ac6ed36f42dca602e8b06375481eb1e31c368a (patch)
tree8fa6504e2daa36ba3553f980540f90776cb0ef7e /tests/assert-uninstall.sh
parenttests/assert-*.sh: Allow tests to run independently from "all" and from each ... (diff)
downloadpapod-d0ac6ed36f42dca602e8b06375481eb1e31c368a.tar.gz
papod-d0ac6ed36f42dca602e8b06375481eb1e31c368a.tar.xz
tests/assert-*.sh: Reuse rebuilt assets for tests
Diffstat (limited to 'tests/assert-uninstall.sh')
-rwxr-xr-xtests/assert-uninstall.sh8
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/assert-uninstall.sh b/tests/assert-uninstall.sh
index 0f85a60..247d723 100755
--- a/tests/assert-uninstall.sh
+++ b/tests/assert-uninstall.sh
@@ -1,19 +1,13 @@
#!/bin/sh
set -eu
-if [ ! -e .git ]; then
- echo "Not in a Git repository, skipping \"$0\"." >&2
- exit
-fi
-
-
. tools/lib.sh
D="$(mkdtemp)"
R="$(mkdtemp)"
trap 'rm -rf "$D" "$R"' EXIT
-git clone -q --depth=1 file://"$PWD" "$R"
+cp -pR ./ "$R"
cd "$R"