Skip to content

Commit d4b536d

Browse files
chore(consume): fix --sim.limit in hive commands shown in test reports (#1333)
* chore(consume): fix sim.limit val in hive command for reproducing fails * docs: update changelog --------- Co-authored-by: Mario Vega <[email protected]>
1 parent 271fe2e commit d4b536d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ consume cache --help
3232
- ✨ Allow filtering of test cases by fixture format via pytest marks (e.g., `-m blockchain_test`) ([#1314](https://github.com/ethereum/execution-spec-tests/pull/1314)).
3333
- ✨ Add top-level entries `forks` and `fixture_formats` to the index file that list all the forks and fixture formats used in the indexed fixtures ([#1318](https://github.com/ethereum/execution-spec-tests/pull/1318)).
3434
- 🐞 Don't parametrize tests for unsupported fixture formats; improve `consume` test collection ([#1315](https://github.com/ethereum/execution-spec-tests/pull/1314)).
35+
- 🐞 Fix the the hive command printed in test reports to reproduce tests in isolation by prefixing the `--sim.limit` flag value with `id:` ([#1333](https://github.com/ethereum/execution-spec-tests/pull/1333)).
3536
- 🐞 Improve index generation of [ethereum/tests](https://github.com/ethereum/tests) fixtures: Allow generation at any directory level and include `generatedTestHash` in the index file for the `fixture_hash` ([#1303](https://github.com/ethereum/execution-spec-tests/pull/1303)).
3637
- 🐞 Fix loading of [ethereum/tests](https://github.com/ethereum/tests) and [ethereum/legacytests](https://github.com/ethereum/legacytests) fixtures for the case of mixed `0x0` and `0x1` transaction types in multi-index (`data`, `gas`, `value`) state test fixtures ([#1330](https://github.com/ethereum/execution-spec-tests/pull/1330)).
3738

src/pytest_plugins/consume/hive_simulators/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def hive_consume_command(
6767
command = ["./hive", "--sim", f"ethereum/{test_suite_name}"]
6868
if hive_client_config_file_parameter:
6969
command += hive_client_config_file_parameter
70-
command += ["--client", client_type.name, "--sim.limit", f'"{test_case.id}"']
70+
command += ["--client", client_type.name, "--sim.limit", f'"id:{test_case.id}"']
7171
return command
7272

7373

0 commit comments

Comments
 (0)