pytest-embedded 2.9.0__tar.gz → 2.9.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pytest_embedded-2.9.0 → pytest_embedded-2.9.1}/PKG-INFO +1 -1
- {pytest_embedded-2.9.0 → pytest_embedded-2.9.1}/pytest_embedded/__init__.py +1 -1
- {pytest_embedded-2.9.0 → pytest_embedded-2.9.1}/pytest_embedded/plugin.py +2 -6
- {pytest_embedded-2.9.0 → pytest_embedded-2.9.1}/LICENSE +0 -0
- {pytest_embedded-2.9.0 → pytest_embedded-2.9.1}/README.md +0 -0
- {pytest_embedded-2.9.0 → pytest_embedded-2.9.1}/pyproject.toml +0 -0
- {pytest_embedded-2.9.0 → pytest_embedded-2.9.1}/pytest_embedded/app.py +0 -0
- {pytest_embedded-2.9.0 → pytest_embedded-2.9.1}/pytest_embedded/dut.py +0 -0
- {pytest_embedded-2.9.0 → pytest_embedded-2.9.1}/pytest_embedded/dut_factory.py +0 -0
- {pytest_embedded-2.9.0 → pytest_embedded-2.9.1}/pytest_embedded/log.py +0 -0
- {pytest_embedded-2.9.0 → pytest_embedded-2.9.1}/pytest_embedded/unity.py +0 -0
- {pytest_embedded-2.9.0 → pytest_embedded-2.9.1}/pytest_embedded/utils.py +0 -0
- {pytest_embedded-2.9.0 → pytest_embedded-2.9.1}/tests/test_base.py +0 -0
|
@@ -1555,7 +1555,7 @@ class PytestEmbedded:
|
|
|
1555
1555
|
self._raise_dut_failed_cases_if_exists(all_duts) # type: ignore
|
|
1556
1556
|
|
|
1557
1557
|
@pytest.hookimpl(trylast=True) # combine all possible junit reports should be the last step
|
|
1558
|
-
def pytest_sessionfinish(self, session: Session) -> None:
|
|
1558
|
+
def pytest_sessionfinish(self, session: Session, exitstatus: int) -> None:
|
|
1559
1559
|
modifier: JunitMerger = session.config.stash[_junit_merger_key]
|
|
1560
1560
|
_stash_session_tempdir = session.config.stash.get(_session_tempdir_key, None)
|
|
1561
1561
|
_stash_junit_report_path = session.config.stash.get(_junit_report_path_key, None)
|
|
@@ -1573,8 +1573,4 @@ class PytestEmbedded:
|
|
|
1573
1573
|
if self.prettify_junit_report:
|
|
1574
1574
|
_prettify_xml(_stash_junit_report_path)
|
|
1575
1575
|
|
|
1576
|
-
|
|
1577
|
-
# without downgrading an already-failing run
|
|
1578
|
-
current_exitstatus = getattr(session, 'exitstatus', pytest.ExitCode.OK)
|
|
1579
|
-
if modifier.failed and current_exitstatus == pytest.ExitCode.OK:
|
|
1580
|
-
session.exitstatus = pytest.ExitCode.TESTS_FAILED
|
|
1576
|
+
exitstatus = int(modifier.failed) # True -> 1 False -> 0 # noqa
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|