Skip to content

Commit

Permalink
chore: raise an error only once if evm bin/tracing options are invalid
Browse files Browse the repository at this point in the history
Otherwise, the error is raised in every test.
  • Loading branch information
danceratopz committed Jul 5, 2023
1 parent 2fbf1cf commit 2ccb377
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pytest_plugins/test_filler/test_filler.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ def pytest_configure(config):
"markers",
"compile_yul_with(fork): Always compile Yul source using the corresponding evm version.",
)
# Instantiate the transition tool here to check that the binary path/trace option is valid.
# This ensures we only raise an error once, if appropriate, instead of for every test.
TransitionTool.from_binary_path(
binary_path=config.getoption("evm_bin"), trace=config.getoption("evm_collect_traces")
)


@pytest.hookimpl(trylast=True)
Expand Down

0 comments on commit 2ccb377

Please sign in to comment.