pytest-embedded 2.4.0__tar.gz → 2.6.0__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.4.0
3
+ Version: 2.6.0
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.4.0'
9
+ __version__ = '2.6.0'
@@ -128,7 +128,7 @@ def _fixture_classes_and_options_fn(
128
128
  confirm_target_elf_sha256,
129
129
  erase_nvs,
130
130
  skip_check_coredump,
131
- panic_output_decode_script,
131
+ skip_decode_panic,
132
132
  openocd_prog_path,
133
133
  openocd_cli_args,
134
134
  gdb_prog_path,
@@ -404,7 +404,7 @@ def _fixture_classes_and_options_fn(
404
404
  kwargs[fixture].update(
405
405
  {
406
406
  'skip_check_coredump': skip_check_coredump,
407
- 'panic_output_decode_script': panic_output_decode_script,
407
+ 'skip_decode_panic': skip_decode_panic,
408
408
  }
409
409
  )
410
410
  elif 'esp' in _services and 'nuttx' in _services:
@@ -667,7 +667,7 @@ class DutFactory:
667
667
  confirm_target_elf_sha256: bool | None = None,
668
668
  erase_nvs: bool | None = None,
669
669
  skip_check_coredump: bool | None = None,
670
- panic_output_decode_script: str | None = None,
670
+ skip_decode_panic: bool | None = None,
671
671
  openocd_prog_path: str | None = None,
672
672
  openocd_cli_args: str | None = None,
673
673
  gdb_prog_path: str | None = None,
@@ -714,7 +714,7 @@ class DutFactory:
714
714
  confirm_target_elf_sha256: Confirm target ELF SHA256.
715
715
  erase_nvs: Erase NVS flag.
716
716
  skip_check_coredump: Skip coredump check flag.
717
- panic_output_decode_script: Panic output decode script.
717
+ skip_decode_panic: Skip panic decoding flag.
718
718
  openocd_prog_path: OpenOCD program path.
719
719
  openocd_cli_args: OpenOCD CLI arguments.
720
720
  gdb_prog_path: GDB program path.
@@ -782,7 +782,7 @@ class DutFactory:
782
782
  'confirm_target_elf_sha256': confirm_target_elf_sha256,
783
783
  'erase_nvs': erase_nvs,
784
784
  'skip_check_coredump': skip_check_coredump,
785
- 'panic_output_decode_script': panic_output_decode_script,
785
+ 'skip_decode_panic': skip_decode_panic,
786
786
  'openocd_prog_path': openocd_prog_path,
787
787
  'openocd_cli_args': openocd_cli_args,
788
788
  'gdb_prog_path': gdb_prog_path,
@@ -238,11 +238,6 @@ def pytest_addoption(parser):
238
238
  'and panic handler support while teardown the failing test case. '
239
239
  'Requires valid partition tool, project_description.json under the build dir. (Default: False)',
240
240
  )
241
- idf_group.addoption(
242
- '--panic-output-decode-script',
243
- help='Panic output decode script that is used in conjunction with the check-panic-coredump option '
244
- 'to parse panic output. (Default: $IDF_PATH/tools/gdb_panic_server.py)',
245
- )
246
241
 
247
242
  jtag_group = parser.getgroup('embedded-jtag')
248
243
  jtag_group.addoption('--gdb-prog-path', help='GDB program path. (Default: "xtensa-esp32-elf-gdb")')
@@ -947,9 +942,9 @@ def skip_check_coredump(request: FixtureRequest) -> bool | None:
947
942
 
948
943
  @pytest.fixture
949
944
  @multi_dut_argument
950
- def panic_output_decode_script(request: FixtureRequest) -> bool | None:
945
+ def skip_decode_panic(request: FixtureRequest) -> bool | None:
951
946
  """Enable parametrization for the same cli option"""
952
- return _request_param_or_config_option_or_default(request, 'panic_output_decode_script', None)
947
+ return _request_param_or_config_option_or_default(request, 'skip_decode_panic', None)
953
948
 
954
949
 
955
950
  ########
@@ -1104,7 +1099,7 @@ def parametrize_fixtures(
1104
1099
  confirm_target_elf_sha256,
1105
1100
  erase_nvs,
1106
1101
  skip_check_coredump,
1107
- panic_output_decode_script,
1102
+ skip_decode_panic,
1108
1103
  openocd_prog_path,
1109
1104
  openocd_cli_args,
1110
1105
  gdb_prog_path,
File without changes