diff options
| author | Drew Ritter <drew@primeradiant.com> | 2026-06-01 14:02:13 -0700 |
|---|---|---|
| committer | Drew Ritter <drew@primeradiant.com> | 2026-06-02 15:35:26 -0700 |
| commit | cb6bdf9dd3bc2bc67069529e57c620d769667e42 (patch) | |
| tree | b3b4c39d9f6e601b3ac9b1d2c0619c4405930f0b /tests/claude-code/test-worktree-path-policy.sh | |
| parent | d7c260a97838a90bd39930ec42080c19b39cb4ad (diff) | |
Fix shell lint baseline warningscodex/shell-lint-baseline-fixes
Diffstat (limited to 'tests/claude-code/test-worktree-path-policy.sh')
| -rwxr-xr-x | tests/claude-code/test-worktree-path-policy.sh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/claude-code/test-worktree-path-policy.sh b/tests/claude-code/test-worktree-path-policy.sh index 58caad7..c9a3320 100755 --- a/tests/claude-code/test-worktree-path-policy.sh +++ b/tests/claude-code/test-worktree-path-policy.sh @@ -47,16 +47,20 @@ assert_not_contains() { echo "=== Worktree Path Policy Test ===" echo "" -assert_not_contains "$USING_SKILL" "~/.config/superpowers/worktrees" "using-git-worktrees does not mention old global path" +# Intentionally search for the literal legacy path, not the current user's home. +# shellcheck disable=SC2088 +legacy_global_worktree_path="~/.config/superpowers/worktrees" + +assert_not_contains "$USING_SKILL" "$legacy_global_worktree_path" "using-git-worktrees does not mention old global path" assert_not_contains "$USING_SKILL" "global legacy" "using-git-worktrees does not use unclear global legacy shorthand" assert_not_contains "$USING_SKILL" "Global path" "using-git-worktrees has no global path quick-reference row" assert_contains "$USING_SKILL" 'default to `.worktrees/` at the project root' "using-git-worktrees defaults new manual worktrees to .worktrees/" -assert_not_contains "$FINISHING_SKILL" "~/.config/superpowers/worktrees" "finishing-a-development-branch does not treat old global path as owned" +assert_not_contains "$FINISHING_SKILL" "$legacy_global_worktree_path" "finishing-a-development-branch does not treat old global path as owned" assert_contains "$FINISHING_SKILL" '`.worktrees/` or `worktrees/`' "finishing-a-development-branch keeps project-local cleanup ownership" -assert_not_contains "$ROTOTILL_SPEC" "~/.config/superpowers/worktrees" "rototill spec does not preserve old global path policy" -assert_not_contains "$ROTOTILL_PLAN" "~/.config/superpowers/worktrees" "rototill plan does not preserve old global path policy" +assert_not_contains "$ROTOTILL_SPEC" "$legacy_global_worktree_path" "rototill spec does not preserve old global path policy" +assert_not_contains "$ROTOTILL_PLAN" "$legacy_global_worktree_path" "rototill plan does not preserve old global path policy" assert_not_contains "$ROTOTILL_PLAN" "legacy path compat" "rototill plan does not advertise legacy path compatibility" echo "" |
