mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	Merge pull request #12512 from ethereum/fix-trident-ext-test-after-preset-selection-pr
Fix preset selection in Trident external test
This commit is contained in:
		
						commit
						10c954fd73
					
				| @ -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 | ||||
| } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user