From 48bbfaeebad8140d223eec666eee81ea357bf0e8 Mon Sep 17 00:00:00 2001 From: Harshit Malpani Date: Mon, 30 May 2022 11:13:05 +0530 Subject: [PATCH] ota_example: Mark tests as flaky --- examples/system/ota/advanced_https_ota/pytest_advanced_ota.py | 2 ++ examples/system/ota/simple_ota_example/pytest_simple_ota.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/examples/system/ota/advanced_https_ota/pytest_advanced_ota.py b/examples/system/ota/advanced_https_ota/pytest_advanced_ota.py index b4349f1c40..7c750c4f02 100644 --- a/examples/system/ota/advanced_https_ota/pytest_advanced_ota.py +++ b/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. diff --git a/examples/system/ota/simple_ota_example/pytest_simple_ota.py b/examples/system/ota/simple_ota_example/pytest_simple_ota.py index 898f9fe517..cb802724ba 100644 --- a/examples/system/ota/simple_ota_example/pytest_simple_ota.py +++ b/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: |