mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-05 05:34:32 +02:00
ci: add flaky test
This commit is contained in:
@@ -146,6 +146,7 @@ before_script:
|
|||||||
- cd /tmp
|
- 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
|
- 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
|
- cd pytest-embedded && bash foreach.sh install
|
||||||
|
- pip install pytest-rerunfailures
|
||||||
- cd $IDF_PATH
|
- cd $IDF_PATH
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@@ -90,6 +90,7 @@ def actual_test(dut: Dut) -> None:
|
|||||||
@pytest.mark.parametrize('config', [
|
@pytest.mark.parametrize('config', [
|
||||||
'ip101',
|
'ip101',
|
||||||
], indirect=True)
|
], indirect=True)
|
||||||
|
@pytest.mark.flaky(reruns=3, reruns_delay=5)
|
||||||
def test_esp_eth_ip101(dut: Dut) -> None:
|
def test_esp_eth_ip101(dut: Dut) -> None:
|
||||||
actual_test(dut)
|
actual_test(dut)
|
||||||
|
|
||||||
@@ -99,5 +100,6 @@ def test_esp_eth_ip101(dut: Dut) -> None:
|
|||||||
@pytest.mark.parametrize('config', [
|
@pytest.mark.parametrize('config', [
|
||||||
'lan8720',
|
'lan8720',
|
||||||
], indirect=True)
|
], indirect=True)
|
||||||
|
@pytest.mark.flaky(reruns=3, reruns_delay=5)
|
||||||
def test_esp_eth_lan8720(dut: Dut) -> None:
|
def test_esp_eth_lan8720(dut: Dut) -> None:
|
||||||
actual_test(dut)
|
actual_test(dut)
|
||||||
|
Reference in New Issue
Block a user