Skip to content

Commit 7b2eb9b

Browse files
jeremyederclaude
andcommitted
Fix test: skip scrum_team_board check when using acme data
The scrum_team_board table is conditionally populated from a "Scrum Team Boards" XLSX tab. The acme example data doesn't include this tab, so skip the check only when acme data is the source. Non-acme deployments still fail if the table is empty. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4717397 commit 7b2eb9b

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

scripts/test.sh

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,20 @@ sys.exit(0 if result == 'ok' else 1)
6565

6666
# 5. Key tables populated
6767
for table in person jira_issue feature release_schedule governance_document scrum_team_board; do
68-
run "table: $table has rows" uv run python3 -c "
69-
import sqlite3, sys
68+
ROW_COUNT=$(uv run python3 -c "
69+
import sqlite3
7070
conn = sqlite3.connect('$DB_PATH')
71-
count = conn.execute('SELECT COUNT(*) FROM $table').fetchone()[0]
72-
sys.exit(0 if count > 0 else 1)
73-
"
71+
print(conn.execute('SELECT COUNT(*) FROM $table').fetchone()[0])
72+
")
73+
if [ "$ROW_COUNT" -gt 0 ]; then
74+
printf "%-40s%s\n" "table: $table has rows" "PASS"
75+
PASS=$((PASS + 1))
76+
elif [ "$table" = "scrum_team_board" ] && ls "$REPO_ROOT"/data/acme-*.xlsx > /dev/null 2>&1; then
77+
printf "%-40s%s\n" "table: $table has rows" "SKIP (acme data lacks tab)"
78+
else
79+
printf "%-40s%s\n" "table: $table has rows" "FAIL"
80+
FAIL=$((FAIL + 1))
81+
fi
7482
done
7583

7684
# 6. Schema diff

0 commit comments

Comments
 (0)