From aad834ae7520ccdb53e002b806a8d483a56c23a9 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Fri, 28 Aug 2026 10:24:20 -0700 Subject: [PATCH] test(diagnosing-superpowers): leak grep covers tests directory too Claude-Session: https://claude.ai/code/session_01DyaGKhTXvHNs2JgPhDktz7 --- tests/diagnosing-superpowers/test-skill-structure.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/diagnosing-superpowers/test-skill-structure.sh b/tests/diagnosing-superpowers/test-skill-structure.sh index af13f2268..9fb7181c8 100755 --- a/tests/diagnosing-superpowers/test-skill-structure.sh +++ b/tests/diagnosing-superpowers/test-skill-structure.sh @@ -106,11 +106,11 @@ for rel in "${expected_files[@]}"; do done # --- no local paths or names in shipped files ---------------------------- -leaks="$(grep -rn -E '/Users/|/home/|jesse' "$SKILL_DIR" 2>/dev/null || true)" +leaks="$(grep -rn -E '/Users/|/home/|jesse' "$SKILL_DIR" "$SCRIPT_DIR" --exclude=test-skill-structure.sh 2>/dev/null || true)" if [ -z "$leaks" ]; then - pass "no machine-specific paths or names in shipped files" + pass "no machine-specific paths or names in shipped files (skills + tests)" else - fail "no machine-specific paths or names in shipped files" + fail "no machine-specific paths or names in shipped files (skills + tests)" printf '%s\n' "$leaks" | head -10 | sed 's/^/ /' fi