mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
ci: add flaky test
This commit is contained in:
parent
a801555299
commit
62a397a9b5
@ -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:
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user