From 66a2ddce1a56a4a6a402b126b7759626aa4ffd67 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 2 Oct 2021 22:56:19 -0300 Subject: tests/: Copy files to temp directory to avoid messing with existing generated files As the tests do a "make clean", which would erase the existing generated files. --- tests/remotes.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests/remotes.sh') diff --git a/tests/remotes.sh b/tests/remotes.sh index 3fff205..d8fd02e 100755 --- a/tests/remotes.sh +++ b/tests/remotes.sh @@ -3,8 +3,13 @@ set -u . tests/lib.sh +TESTDIR="$(mkdtemp)" +cp -R . "$TESTDIR" +cd "$TESTDIR" || exit + TEST_PREFIX="$PWD/tests/prefix/$(uuid)" -make PREFIX="$TEST_PREFIX" install 1>/dev/null +make clean >/dev/null +make PREFIX="$TEST_PREFIX" install >/dev/null PATH="$PWD/tests:$TEST_PREFIX/bin:$PATH" if ! git config --global user.email > /dev/null; then -- cgit v1.2.3