Skip to content

Commit

Permalink
ci: only fail if there are uncleaned snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Apr 5, 2024
1 parent 002be16 commit e0807a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/report_uncleaned_snapshots.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ while IFS= read -r snapshot_dir; do
uncleaned_snapshots=1
done < <(find . -type d -name "__snapshots__")

if [ $uncleaned_snapshots ]; then
if [ $uncleaned_snapshots -eq 1 ]; then
echo ""
echo "one or more packages are using snapshots but not ensuring they're cleaned up"
echo "make sure these packages have a testmain_test.go file that defines a TestMain function that calls testutility.CleanSnapshots(m)"
Expand Down

0 comments on commit e0807a6

Please sign in to comment.