Skip to content

Commit

Permalink
refactor: rename EXTRA_ARGS to TEST_ARGS
Browse files Browse the repository at this point in the history
  • Loading branch information
amusingaxl committed Jul 27, 2023
1 parent 56232c5 commit 7e1fef6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/test-dssspell-forge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ export FOUNDRY_OPTIMIZER=false
export FOUNDRY_OPTIMIZER_RUNS=200
export FOUNDRY_ROOT_CHAINID=1

EXTRA_ARGS=''
local TEST_ARGS=''

if [[ -n "$MATCH" ]]; then
EXTRA_ARGS="${EXTRA_ARGS} -vvv --match-test ${MATCH}"
TEST_ARGS="${TEST_ARGS} -vvv --match-test ${MATCH}"
elif [[ -n "$NO_MATCH" ]]; then
EXTRA_ARGS="${EXTRA_ARGS} -vvv --no-match-test ${NO_MATCH}"
TEST_ARGS="${TEST_ARGS} -vvv --no-match-test ${NO_MATCH}"
fi

if [[ -n "$BLOCK" ]]; then
EXTRA_ARGS="${EXTRA_ARGS} --fork-block-number ${BLOCK}"
TEST_ARGS="${TEST_ARGS} --fork-block-number ${BLOCK}"
fi

forge test --fork-url "$ETH_RPC_URL" $EXTRA_ARGS
forge test --fork-url "$ETH_RPC_URL" $TEST_ARGS

0 comments on commit 7e1fef6

Please sign in to comment.