Просмотр исходного кода

ci: Run test_examples_efuse_with_virt_secure_boot_v2 only on ESP32 ECO3

KonstantinKondrashov 3 лет назад
Родитель
Сommit
c191e95300
3 измененных файлов с 11 добавлено и 2 удалено
  1. 8 0
      .gitlab/ci/target-test.yml
  2. 1 0
      conftest.py
  3. 2 2
      examples/system/efuse/pytest_system_efuse_example.py

+ 8 - 0
.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

+ 1 - 0
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.',

+ 2 - 2
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: