Skip to content

Commit 4848a77

Browse files
committed
Ensure tests aren't accidentially run against wrong fork
Some test directories have fork names in the directory name. Globbing tests based on -k <ForkName> causes tests against <ForkName> to include tests that actuall go against <OtherForkName> only because <ForkName> matches against the glob because it appears in the directory name.
1 parent 79af447 commit 4848a77

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tox.ini

+7-7
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ commands=
3737
transactions: pytest {posargs:tests/json-fixtures/test_transactions.py}
3838
vm: pytest {posargs:tests/json-fixtures/test_virtual_machine.py}
3939
native-blockchain: pytest {posargs:tests/json-fixtures/test_blockchain.py}
40-
native-state-frontier: pytest {posargs:tests/json-fixtures/test_state.py -k Frontier}
41-
native-state-homestead: pytest {posargs:tests/json-fixtures/test_state.py -k Homestead}
42-
native-state-eip150: pytest {posargs:tests/json-fixtures/test_state.py -k EIP150}
43-
native-state-eip158: pytest {posargs:tests/json-fixtures/test_state.py -k EIP158}
44-
native-state-byzantium: pytest {posargs:tests/json-fixtures/test_state.py -k Byzantium}
45-
native-state-constantinople: pytest {posargs:tests/json-fixtures/test_state.py -k Constantinople}
46-
native-state-metropolis: pytest {posargs:tests/json-fixtures/test_state.py -k Metropolis}
40+
native-state-frontier: pytest {posargs:tests/json-fixtures/test_state.py -k :Frontier}
41+
native-state-homestead: pytest {posargs:tests/json-fixtures/test_state.py -k :Homestead}
42+
native-state-eip150: pytest {posargs:tests/json-fixtures/test_state.py -k :EIP150}
43+
native-state-eip158: pytest {posargs:tests/json-fixtures/test_state.py -k :EIP158}
44+
native-state-byzantium: pytest {posargs:tests/json-fixtures/test_state.py -k :Byzantium}
45+
native-state-constantinople: pytest {posargs:tests/json-fixtures/test_state.py -k :Constantinople}
46+
native-state-metropolis: pytest {posargs:tests/json-fixtures/test_state.py -k :Metropolis}
4747
lightchain_integration: pytest --integration {posargs:tests/trinity/integration/test_lightchain_integration.py}
4848

4949
deps = .[p2p,trinity,eth-extra,test]

0 commit comments

Comments
 (0)