Parcourir la source

Merge branch 'bugfix/mark_ota_test_as_flaky' into 'master'

ota_example: Mark tests as flaky

See merge request espressif/esp-idf!18311
Mahavir Jain il y a 3 ans
Parent
commit
8e9bb00781

+ 2 - 0
examples/system/ota/advanced_https_ota/pytest_advanced_ota.py

@@ -576,6 +576,7 @@ def test_examples_protocol_advanced_https_ota_example_partial_request(dut: Dut)
 @pytest.mark.esp32s3
 @pytest.mark.wifi_ota
 @pytest.mark.parametrize('config', ['nimble',], indirect=True)
+@pytest.mark.flaky(reruns=3, reruns_delay=5)
 def test_examples_protocol_advanced_https_ota_example_nimble_gatts(dut: Dut) -> None:
     """
     Run an OTA image update while a BLE GATT Server is running in background. This GATT server will be using NimBLE Host stack.
@@ -618,6 +619,7 @@ def test_examples_protocol_advanced_https_ota_example_nimble_gatts(dut: Dut) ->
 @pytest.mark.esp32s3
 @pytest.mark.wifi_ota
 @pytest.mark.parametrize('config', ['bluedroid',], indirect=True)
+@pytest.mark.flaky(reruns=3, reruns_delay=5)
 def test_examples_protocol_advanced_https_ota_example_bluedroid_gatts(dut: Dut) -> None:
     """
     Run an OTA image update while a BLE GATT Server is running in background. This GATT server will be using Bluedroid Host stack.

+ 2 - 0
examples/system/ota/simple_ota_example/pytest_simple_ota.py

@@ -128,6 +128,7 @@ def calc_all_sha256(dut: Dut) -> Tuple[str, str]:
 @pytest.mark.esp32s2
 @pytest.mark.esp32s3
 @pytest.mark.wifi_ota
+@pytest.mark.flaky(reruns=3, reruns_delay=5)
 def test_examples_protocol_simple_ota_example(dut: Dut) -> None:
     """
     steps: |
@@ -240,6 +241,7 @@ def test_examples_protocol_simple_ota_example_with_flash_encryption(dut: Dut) ->
 @pytest.mark.flash_encryption_wifi_ota
 @pytest.mark.parametrize('config', ['flash_enc_wifi',], indirect=True)
 @pytest.mark.parametrize('skip_autoflash', ['y'], indirect=True)
+@pytest.mark.flaky(reruns=3, reruns_delay=5)
 def test_examples_protocol_simple_ota_example_with_flash_encryption_wifi(dut: Dut) -> None:
     """
     steps: |