tests: replace CLI-dependent xfail/skipif conditions

This commit is contained in:
Fu Hanxi
2026-08-20 09:14:41 +02:00
parent 844a03718a
commit 289a17b3a2
4 changed files with 83 additions and 23 deletions
@@ -27,15 +27,14 @@ def test_esp_event_ext_ram(dut: Dut) -> None:
@pytest.mark.qemu
@pytest.mark.xfail('config.getvalue("target") == "esp32c3"', reason='Unstable on QEMU, needs investigation')
@pytest.mark.parametrize(
'config',
@idf_parametrize(
'config,target,markers',
[
'defaults',
('defaults', 'esp32'),
('defaults', 'esp32c3', (pytest.mark.xfail(reason='Unstable on QEMU, needs investigation'),)),
],
indirect=True,
indirect=['config', 'target'],
)
@idf_parametrize('target', ['esp32', 'esp32c3'], indirect=['target'])
def test_esp_event_qemu(dut: Dut) -> None:
for case in dut.test_menu:
if 'qemu-ignore' not in case.groups and not case.is_ignored and case.type == 'normal':