From fe2e1b05ac9123774622e8f896c2416dc27fabca Mon Sep 17 00:00:00 2001 From: Guillaume Souchere Date: Wed, 13 Mar 2024 09:48:04 +0100 Subject: [PATCH] change(esp_ringbuf): Format pytest_esp_ringbuf.py --- .../test_apps/pytest_esp_ringbuf.py | 34 +++++++------------ 1 file changed, 13 insertions(+), 21 deletions(-) diff --git a/components/esp_ringbuf/test_apps/pytest_esp_ringbuf.py b/components/esp_ringbuf/test_apps/pytest_esp_ringbuf.py index f82f19f722..dd5b211a12 100644 --- a/components/esp_ringbuf/test_apps/pytest_esp_ringbuf.py +++ b/components/esp_ringbuf/test_apps/pytest_esp_ringbuf.py @@ -1,36 +1,28 @@ -# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD +# SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD # SPDX-License-Identifier: CC0-1.0 - import pytest from pytest_embedded import Dut -@pytest.mark.esp32 -@pytest.mark.esp32s2 -@pytest.mark.esp32c3 @pytest.mark.generic -@pytest.mark.parametrize( - 'config', - [ - 'default', - 'ringbuf_flash' - ] -) +@pytest.mark.parametrize('config', [ + 'default', + 'ringbuf_flash', +]) def test_esp_ringbuf(dut: Dut) -> None: dut.run_all_single_board_cases() -@pytest.mark.esp32 -@pytest.mark.esp32c3 @pytest.mark.host_test @pytest.mark.qemu -@pytest.mark.parametrize( - 'config', - [ - 'default', - 'ringbuf_flash' - ] -) +@pytest.mark.parametrize('target', [ + 'esp32', + 'esp32c3', +]) +@pytest.mark.parametrize('config', [ + 'default', + 'ringbuf_flash', +]) def test_esp_ringbuf_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':