Skip to content

Commit 69c04ce

Browse files
committed
only run fill command from root folder of repo
1 parent 37049a0 commit 69c04ce

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/pytest_plugins/filler/filler.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,14 @@ def pytest_configure(config):
223223
called before the pytest-html plugin's pytest_configure to ensure that
224224
it uses the modified `htmlpath` option.
225225
"""
226+
# Ensure the fill command was called in the root folder of execution-spec-tests repo
227+
cwd = Path(os.getcwd())
228+
cwd_as_list = list(cwd.parts)
229+
if cwd_as_list[-1].lower() != "execution-spec-tests":
230+
pytest.exit(
231+
"Please run the fill command in the root folder of the execution-spec-tests repo!"
232+
)
233+
226234
# Modify the block gas limit if specified.
227235
if config.getoption("block_gas_limit"):
228236
EnvironmentDefaults.gas_limit = config.getoption("block_gas_limit")

0 commit comments

Comments
 (0)