From dd934d3b07b8a5d3550a4b65b5569383499e9b05 Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Sun, 5 Jul 2026 11:29:20 +0000 Subject: [PATCH] fix(tests): exclude .claude/worktrees/ from test-file discovery MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit find-based discovery in run-bats.sh and run-tests.sh picked up test files nested inside on-disk git worktree checkouts under .claude/worktrees/ (untracked, created by background agent isolation), whose submodule-based test_helper isn't initialized there — causing spurious pre-push failures unrelated to any real change. Co-Authored-By: Claude Sonnet 5 --- tests/run-bats.sh | 1 + tests/run-tests.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/run-bats.sh b/tests/run-bats.sh index 2f80d1e..cd99a69 100755 --- a/tests/run-bats.sh +++ b/tests/run-bats.sh @@ -16,6 +16,7 @@ mapfile -t TEST_FILES < <( find "$REPO_ROOT" -name "*.bats" \ -not -path "*/tests/bats/*" \ -not -path "*/test_helper/*" \ + -not -path "*/.claude/worktrees/*" \ | sort ) diff --git a/tests/run-tests.sh b/tests/run-tests.sh index dcfea34..51464ab 100755 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -33,6 +33,7 @@ run_bats mapfile -t SCRIPTS < <( find "$SEARCH_ROOT" -name "test-*.sh" \ -not -path "*/.git/*" \ + -not -path "*/.claude/worktrees/*" \ | sort )