Skip to content

Commit

Permalink
Ensure tests aren't accidentially run against wrong fork
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cburgdorf committed Oct 26, 2018
1 parent 8a765c6 commit 30b7c08
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ commands=
transactions: pytest {posargs:tests/json-fixtures/test_transactions.py}
vm: pytest {posargs:tests/json-fixtures/test_virtual_machine.py}
native-blockchain: pytest {posargs:tests/json-fixtures/test_blockchain.py}
native-state-frontier: pytest {posargs:tests/json-fixtures/test_state.py -k Frontier}
native-state-homestead: pytest {posargs:tests/json-fixtures/test_state.py -k Homestead}
native-state-eip150: pytest {posargs:tests/json-fixtures/test_state.py -k EIP150}
native-state-eip158: pytest {posargs:tests/json-fixtures/test_state.py -k EIP158}
native-state-byzantium: pytest {posargs:tests/json-fixtures/test_state.py -k Byzantium}
native-state-constantinople: pytest {posargs:tests/json-fixtures/test_state.py -k Constantinople}
native-state-metropolis: pytest {posargs:tests/json-fixtures/test_state.py -k Metropolis}
native-state-frontier: pytest {posargs:tests/json-fixtures/test_state.py -k :Frontier}
native-state-homestead: pytest {posargs:tests/json-fixtures/test_state.py -k :Homestead}
native-state-eip150: pytest {posargs:tests/json-fixtures/test_state.py -k :EIP150}
native-state-eip158: pytest {posargs:tests/json-fixtures/test_state.py -k :EIP158}
native-state-byzantium: pytest {posargs:tests/json-fixtures/test_state.py -k :Byzantium}
native-state-constantinople: pytest {posargs:tests/json-fixtures/test_state.py -k :Constantinople}
native-state-metropolis: pytest {posargs:tests/json-fixtures/test_state.py -k :Metropolis}
lightchain_integration: pytest --integration {posargs:tests/trinity/integration/test_lightchain_integration.py}

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

0 comments on commit 30b7c08

Please sign in to comment.