From d0ac6ed36f42dca602e8b06375481eb1e31c368a Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 13 Nov 2023 09:24:34 -0300 Subject: tests/assert-*.sh: Reuse rebuilt assets for tests --- tests/assert-uninstall.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'tests/assert-uninstall.sh') 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" -- cgit v1.2.3