Skip to content

Commit

Permalink
Merge branch 'main' into dailytest
Browse files Browse the repository at this point in the history
  • Loading branch information
danceratopz committed Aug 27, 2024
2 parents bfc84a5 + 14f9cbf commit 54c8dd6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Test fixtures for use by clients are available for each release on the [Github r
- ✨ Added [`extend_with_defaults` utility function](https://ethereum.github.io/execution-spec-tests/main/writing_tests/writing_a_new_test/#ethereum_test_tools.utility.pytest.extend_with_defaults), which helps extend test case parameter sets with default values. `@pytest.mark.parametrize` ([#739](https://github.com/ethereum/execution-spec-tests/pull/739)).
- ✨ Added `Container.Init` to `ethereum_test_types.EOF.V1` package, which allows generation of an EOF init container more easily ([#739](https://github.com/ethereum/execution-spec-tests/pull/739)).
- ✨ Introduce method valid_opcodes() to the fork class ([#748](https://github.com/ethereum/execution-spec-tests/pull/748)).
- 🐞 Fixed `consume` exit code return values, ensuring that pytest's return value is correctly propagated to the shell. This allows the shell to accurately reflect the test results (e.g., failures) based on the pytest exit code ([#765](https://github.com/ethereum/execution-spec-tests/pull/765)).

### 🔧 EVM Tools

Expand Down
5 changes: 3 additions & 2 deletions src/cli/pytest_commands/consume.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,10 @@ def command(pytest_args: List[str], help_flag: bool, pytest_help_flag: bool) ->
if is_hive and not any(arg.startswith("--hive-session-temp-folder") for arg in args):
with TemporaryDirectory() as temp_dir:
args.extend(["--hive-session-temp-folder", temp_dir])
pytest.main(args)
result = pytest.main(args)
else:
pytest.main(args)
result = pytest.main(args)
sys.exit(result)

command.__doc__ = func.__doc__
return command
Expand Down

0 comments on commit 54c8dd6

Please sign in to comment.