pytest-embedded 2.9.0__tar.gz → 2.9.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pytest-embedded
3
- Version: 2.9.0
3
+ Version: 2.9.2
4
4
  Summary: A pytest plugin that designed for embedded testing.
5
5
  Author-email: Fu Hanxi <fuhanxi@espressif.com>
6
6
  Requires-Python: >=3.10
@@ -6,4 +6,4 @@ from .dut_factory import DutFactory
6
6
 
7
7
  __all__ = ['App', 'Dut', 'DutFactory']
8
8
 
9
- __version__ = '2.9.0'
9
+ __version__ = '2.9.2'
@@ -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
- # escalate the session exit status to failure if the merged junit report contains failures,
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