diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 16c3563458..39a9531886 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -146,6 +146,7 @@ before_script: - cd /tmp - retry_failed git clone --depth 1 --branch $PYTEST_EMBEDDED_TAG https://gitlab-ci-token:${BOT_TOKEN}@${CI_SERVER_HOST}:${CI_SERVER_PORT}/idf/pytest-embedded.git - cd pytest-embedded && bash foreach.sh install + - pip install pytest-rerunfailures - cd $IDF_PATH default: diff --git a/components/esp_eth/test_apps/pytest_esp_eth.py b/components/esp_eth/test_apps/pytest_esp_eth.py index 85ce618a20..cb79e58005 100644 --- a/components/esp_eth/test_apps/pytest_esp_eth.py +++ b/components/esp_eth/test_apps/pytest_esp_eth.py @@ -90,6 +90,7 @@ def actual_test(dut: Dut) -> None: @pytest.mark.parametrize('config', [ 'ip101', ], indirect=True) +@pytest.mark.flaky(reruns=3, reruns_delay=5) def test_esp_eth_ip101(dut: Dut) -> None: actual_test(dut) @@ -99,5 +100,6 @@ def test_esp_eth_ip101(dut: Dut) -> None: @pytest.mark.parametrize('config', [ 'lan8720', ], indirect=True) +@pytest.mark.flaky(reruns=3, reruns_delay=5) def test_esp_eth_lan8720(dut: Dut) -> None: actual_test(dut)