Skip to content

Commit

Permalink
add pattern matching on test name
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-kothari committed Oct 9, 2023
1 parent efefd8a commit 4bdd987
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions yarn-project/canary/scripts/run_tests
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ set -eu
export TEST=$1
export IMAGE=${2:-canary}
export COMPOSE_FILE=${3:-./scripts/docker-compose.yml}

if [ "$TEST" = "uniswap_trade_on_l1_from_l2.test.ts" ]; then
:
# if test name ends with uniswap_trade_on_l1_from_l2.test.ts, use the forked mainnet
if [[ "$TEST" == "*uniswap_trade_on_l1_from_l2.test.ts" ]]; then
export FORK_URL=https://mainnet.infura.io/v3/9928b52099854248b3a096be07a6b23c
export FORK_BLOCK_NUMBER=17514288
fi
Expand Down

0 comments on commit 4bdd987

Please sign in to comment.