Skip to content

Commit

Permalink
fix: Fix make sweep (#2025)
Browse files Browse the repository at this point in the history
* Test make sweep (WIP)

* Test make sweep (WIP)

* Fix make sweep
  • Loading branch information
sfc-gh-asawicki committed Aug 22, 2023
1 parent 6d1703c commit beb2f98
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ dev-cleanup: ## cleanup development dependencies

sweep: ## destroy the whole architecture; USE ONLY FOR DEVELOPMENT ACCOUNTS
@echo "WARNING: This will destroy infrastructure. Use only in development accounts."
@read -p "Are you sure? [y/n]" -n 1 REPLY; echo; \
if [[ $$REPLY =~ ^[yY]$$ ]]; then \
SNOWFLAKE_ENABLE_SWEEP=1 go test -timeout 300s -run ^TestSweepAll ./pkg/sdk -v; \
else echo "Aborting..."; \
@echo "Are you sure? [y/n]" >&2
@read -r REPLY; \
if echo "$$REPLY" | grep -qG "^[yY]$$"; then \
SNOWFLAKE_ENABLE_SWEEP=1 go test -timeout 300s -run ^TestSweepAll ./pkg/sdk -v; \
else echo "Aborting..."; \
fi;
.PHONY: sweep

Expand Down

0 comments on commit beb2f98

Please sign in to comment.