Skip to content

Commit

Permalink
tests/common.bash: Copy build-aux instead of symlinking it
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeShu committed Sep 9, 2019
1 parent eced369 commit 999e1b9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion tests/common.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

common_setup() {
test_tmpdir="$(mktemp -d)"
ln -s "$BATS_TEST_DIRNAME/.." "$test_tmpdir/build-aux"
cp -a "$BATS_TEST_DIRNAME/.." "$test_tmpdir/build-aux"
cd "$test_tmpdir"
cat >Makefile <<-'__EOT__'
.DEFAULT_GOAL = all
Expand Down
3 changes: 0 additions & 3 deletions tests/prelude.bats
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,6 @@ load common
# things are clean.
skip
fi
# Let's not work with a symlink for this test
rm "$test_tmpdir/build-aux"
cp -a "$BATS_TEST_DIRNAME/.." "$test_tmpdir/build-aux"
(cd build-aux && git clean -fdx)

cat >>Makefile <<-'__EOT__'
Expand Down

0 comments on commit 999e1b9

Please sign in to comment.