From df991fb5300b6a8e288825b5ccbe85616adaa79e Mon Sep 17 00:00:00 2001 From: Giacomo Dematteis Date: Thu, 3 Oct 2024 13:53:02 +0200 Subject: [PATCH] tests: on_target: no cloud check on fota Remove cloud check on fota test. Signed-off-by: Giacomo Dematteis --- tests/on_target/tests/test_fota.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/tests/on_target/tests/test_fota.py b/tests/on_target/tests/test_fota.py index 6b674ed2..f670333e 100644 --- a/tests/on_target/tests/test_fota.py +++ b/tests/on_target/tests/test_fota.py @@ -73,27 +73,6 @@ def _run_fota(bundleId, fota_type, fotatimeout=APP_FOTA_TIMEOUT, test_fota_resum t91x_board.uart.wait_for_str("FMFU finished") t91x_board.uart.wait_for_str("Connected to Cloud", "Failed to connect to Cloud after FOTA") - # Check the job status on cloud - number_of_attempts = 30 - sleep_time = 30 - for i in range(number_of_attempts): - logger.debug(f"Checking FOTA job status in cloud, attempt {i+1}") - time.sleep(sleep_time) - jobs = t91x_board.fota.list_fota_jobs() - job = next((job for job in jobs if job['id'] == job_id), None) - if job: - status = job['status'] - if status == 'SUCCEEDED': - logger.info("FOTA job succeeded reported to cloud") - break - else: - logger.warning(f"FOTA job status in cloud is {status}, retrying in {sleep_time} seconds") - continue - else: - pytest.fail("FOTA job not found in the list of jobs") - else: - pytest.fail(f"FOTA job status not SUCCEEDED after {number_of_attempts * sleep_time} seconds") - return _run_fota