diff --git a/test/externalTests/trident.sh b/test/externalTests/trident.sh index 6921d7a8a..d82b0a707 100755 --- a/test/externalTests/trident.sh +++ b/test/externalTests/trident.sh @@ -58,9 +58,8 @@ function trident_test legacy-optimize-evm+yul ) - local selected_optimizer_presets - selected_optimizer_presets=$(circleci_select_steps_multiarg "${settings_presets[@]}") - print_optimizer_presets_or_exit "$selected_optimizer_presets" + [[ $SELECTED_PRESETS != "" ]] || SELECTED_PRESETS=$(circleci_select_steps_multiarg "${settings_presets[@]}") + print_presets_or_exit "$SELECTED_PRESETS" setup_solc "$DIR" "$BINARY_TYPE" "$BINARY_PATH" download_project "$repo" "$ref_type" "$ref" "$DIR" @@ -71,7 +70,7 @@ function trident_test neutralize_package_json_hooks force_hardhat_compiler_binary "$config_file" "$BINARY_TYPE" "$BINARY_PATH" - force_hardhat_compiler_settings "$config_file" "$(first_word "$selected_optimizer_presets")" "$config_var" + force_hardhat_compiler_settings "$config_file" "$(first_word "$SELECTED_PRESETS")" "$config_var" yarn install replace_version_pragmas @@ -89,7 +88,7 @@ function trident_test # version check. It's not used by tests so we can remove it. rm -r node_modules/@sushiswap/core/ - for preset in $selected_optimizer_presets; do + for preset in $SELECTED_PRESETS; do hardhat_run_test "$config_file" "$preset" "${compile_only_presets[*]}" compile_fn test_fn "$config_var" done }