From 30ca1bfba2b48927f6874817c27d78ef12a862d0 Mon Sep 17 00:00:00 2001 From: John D Pell Date: Thu, 6 Jan 2022 20:14:33 -0800 Subject: [PATCH] test/test_helper: exclude bad symlink Symlink `/test_lib/bats-core/test/fixtures/parallel/suite/helper.bash` references a not-existing file, but it's in a submodule so I can't just fix it. Exclude it from `rsync` in `setup_test_fixture()`. --- test/test_helper.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_helper.bash b/test/test_helper.bash index 8d92e89c..9dda3b36 100644 --- a/test/test_helper.bash +++ b/test/test_helper.bash @@ -41,7 +41,7 @@ setup_test_fixture() { if command -v rsync &> /dev/null; then # Use rsync to copy Bash-it to the temp folder - rsync -qavrKL -d --delete-excluded --exclude=.git --exclude=enabled "$src_topdir" "$BASH_IT" + rsync -qavrKL -d --delete-excluded --exclude=.git --exclude=helper.bash --exclude=enabled "$src_topdir" "$BASH_IT" else rm -rf "$BASH_IT" mkdir -p "$BASH_IT"