Skip to content

Commit

Permalink
Pass evm_values as parameter rather than environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
r0qs committed Feb 2, 2024
1 parent a8999ec commit a356764
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,7 @@ commands:
- run:
name: soltest_all
no_output_timeout: 30m
command: .circleci/soltest_all.sh
environment:
EVM_VALUES: "<< parameters.evm_versions >>"
command: .circleci/soltest_all.sh "<< parameters.evm_versions >>"

run_cmdline_tests:
steps:
Expand Down
5 changes: 2 additions & 3 deletions .circleci/soltest_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,11 @@ REPODIR="$(realpath "$(dirname "$0")"/..)"
source "${REPODIR}/scripts/common.sh"

DEFAULT_EVM_VALUES=(constantinople petersburg istanbul berlin london paris shanghai cancun)
# Deserialize the EVM_VALUES array from the environment variable if provided or
# Deserialize the EVM_VALUES array if it was provided as argument or
# set EVM_VALUES to the default values.
IFS=" " read -ra EVM_VALUES <<< "${EVM_VALUES:-${DEFAULT_EVM_VALUES[@]}}"
IFS=" " read -ra EVM_VALUES <<< "${1:-${DEFAULT_EVM_VALUES[@]}}"

DEFAULT_EVM=shanghai
[[ " ${EVM_VALUES[*]} " =~ $DEFAULT_EVM ]]
OPTIMIZE_VALUES=(0 1)

# Run for ABI encoder v1, without SMTChecker tests.
Expand Down

0 comments on commit a356764

Please sign in to comment.