From c191e9530022599c568eb37d2d2a0a00daaa5bc7 Mon Sep 17 00:00:00 2001 From: KonstantinKondrashov Date: Fri, 3 Feb 2023 23:31:38 +0800 Subject: [PATCH] ci: Run test_examples_efuse_with_virt_secure_boot_v2 only on ESP32 ECO3 --- .gitlab/ci/target-test.yml | 8 ++++++++ conftest.py | 1 + examples/system/efuse/pytest_system_efuse_example.py | 4 ++-- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.gitlab/ci/target-test.yml b/.gitlab/ci/target-test.yml index 47d6945e94..d479cbe21f 100644 --- a/.gitlab/ci/target-test.yml +++ b/.gitlab/ci/target-test.yml @@ -54,6 +54,14 @@ example_test_pytest_esp32_generic: tags: [ esp32, generic ] parallel: 3 +example_test_pytest_esp32_esp32eco3: + extends: + - .pytest_examples_dir_template + - .rules:test:example_test-esp32 + needs: + - build_pytest_examples_esp32 + tags: [ esp32, esp32eco3 ] + example_test_pytest_esp32_ir_transceiver: extends: - .pytest_examples_dir_template diff --git a/conftest.py b/conftest.py index 2171ea21dd..b47b41e49a 100644 --- a/conftest.py +++ b/conftest.py @@ -119,6 +119,7 @@ ENV_MARKERS = { 'no32kXtal': 'Runner with no external 32k crystal connected', 'multi_dut_modbus_rs485': 'a pair of runners connected by RS485 bus', 'psramv0': 'Runner with PSRAM version 0', + 'esp32eco3': 'Runner with esp32 eco3 connected', # multi-dut markers 'ieee802154': 'ieee802154 related tests should run on ieee802154 runners.', 'openthread_br': 'tests should be used for openthread border router.', diff --git a/examples/system/efuse/pytest_system_efuse_example.py b/examples/system/efuse/pytest_system_efuse_example.py index 7ee1a3e06e..ac480109ed 100644 --- a/examples/system/efuse/pytest_system_efuse_example.py +++ b/examples/system/efuse/pytest_system_efuse_example.py @@ -355,8 +355,8 @@ def test_examples_efuse_with_virt_secure_boot_v1_pre_loaded(dut: Dut) -> None: dut.expect('example: Done') -@pytest.mark.generic @pytest.mark.esp32 +@pytest.mark.esp32eco3 @pytest.mark.parametrize('config', [('virt_secure_boot_v2.esp32'),], indirect=True) @pytest.mark.parametrize('skip_autoflash', ['y'], indirect=True) def test_examples_efuse_with_virt_secure_boot_v2(dut: Dut) -> None: @@ -471,8 +471,8 @@ def test_examples_efuse_with_virt_secure_boot_v2(dut: Dut) -> None: dut.expect('example: Done') -@pytest.mark.generic @pytest.mark.esp32 +@pytest.mark.esp32eco3 @pytest.mark.parametrize('config', [('virt_secure_boot_v2.esp32'),], indirect=True) @pytest.mark.parametrize('skip_autoflash', ['y'], indirect=True) def test_examples_efuse_with_virt_secure_boot_v2_pre_loaded(dut: Dut) -> None: