ci: add flaky test

This commit is contained in:
Fu Hanxi 2022-01-21 12:23:27 +08:00
parent a801555299
commit 62a397a9b5
2 changed files with 3 additions and 0 deletions

View File

@ -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:

View File

@ -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)