diff --git a/.gitlab/ci/target-test.yml b/.gitlab/ci/target-test.yml index 218b7c8f21..db0b6a4432 100644 --- a/.gitlab/ci/target-test.yml +++ b/.gitlab/ci/target-test.yml @@ -322,7 +322,7 @@ component_ut_pytest_esp32_lan8720: - .rules:labels-protected:lan8720 # FIXME: IDFCI-1176 needs: - build_pytest_components_esp32 - tags: [ esp32, lan8720 ] + tags: [ esp32, eth_lan8720 ] component_ut_pytest_esp32_flash_encryption: extends: diff --git a/components/esp_eth/test_apps/pytest_esp_eth.py b/components/esp_eth/test_apps/pytest_esp_eth.py index 8cbe1f654b..93a3724020 100644 --- a/components/esp_eth/test_apps/pytest_esp_eth.py +++ b/components/esp_eth/test_apps/pytest_esp_eth.py @@ -24,6 +24,7 @@ class EthTestIntf(object): def find_target_if(self, my_if: str = '') -> None: # try to determine which interface to use netifs = os.listdir('/sys/class/net/') + netifs.sort(reverse=True) logging.info('detected interfaces: %s', str(netifs)) for netif in netifs: @@ -181,7 +182,7 @@ def test_esp_eth_ip101(dut: Dut) -> None: @pytest.mark.esp32 -@pytest.mark.lan8720 +@pytest.mark.eth_lan8720 @pytest.mark.parametrize('config', [ 'lan8720', ], indirect=True) diff --git a/pytest.ini b/pytest.ini index 3cb5224643..291ac10139 100644 --- a/pytest.ini +++ b/pytest.ini @@ -33,7 +33,7 @@ markers = nightly_run: tests should be executed as part of the nightly trigger pipeline flash_suspend: support flash suspend feature ip101: connected via wired 10/100M ethernet - lan8720: connected via LAN8720 ethernet transceiver + eth_lan8720: connected via LAN8720 ethernet transceiver quad_psram: runners with quad psram octal_psram: runners with octal psram usb_host: usb host runners