File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -104,8 +104,10 @@ STONKS_POSTVOTE_SUITES ?= staking-revenue-source buyback-happy-path
104104test-stonks-integration-prevote :
105105 cd $(STONKS_DIR ) && \
106106 { [ -d node_modules ] || npm ci; } && \
107- POSTVOTE_PATTERN=$$(echo "$(STONKS_POSTVOTE_SUITES ) " | tr ' ' '|' ) && \
108- RPC_URL=$(ETH_RPC_URL ) npx hardhat test $$(ls test/integration/*.ts | grep -vE "$$POSTVOTE_PATTERN" ) --network localhost
107+ POSTVOTE_PATTERN=" ^test/integration/($$ (echo $( STONKS_POSTVOTE_SUITES) | tr ' ' '|'))\.ts$$ " && \
108+ PREVOTE_SUITES=$$(ls test/integration/*.ts | grep -vE "$$POSTVOTE_PATTERN" || true ) && \
109+ { [ -n " $$ PREVOTE_SUITES" ] || { echo " No pre-vote suites left after excluding: $( STONKS_POSTVOTE_SUITES) " >&2 ; exit 1; }; } && \
110+ RPC_URL=$(ETH_RPC_URL ) npx hardhat test $$ PREVOTE_SUITES --network localhost
109111
110112test-stonks-integration-postvote : ci-prepare-environment
111113 cd $(STONKS_DIR ) && \
You can’t perform that action at this time.
0 commit comments