Skip to content

Commit

Permalink
tests: on_target: small fix test fota
Browse files Browse the repository at this point in the history
Remove job id, no need.

Signed-off-by: Giacomo Dematteis <[email protected]>
  • Loading branch information
DematteisGiacomo committed Dec 5, 2024
1 parent e8f294d commit d9adeeb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/on_target/tests/test_functional/test_fota.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@

def post_job(t91x_fota, bundle_id, fota_type):
result = t91x_fota.fota.post_fota_job(type=fota_type, bundle_id=bundle_id)
job_id = result["id"]
if not result:
pytest.skip("Failed to post FOTA job")
t91x_fota.uart.flush()
return job_id
return

def run_fota_resumption(t91x_fota, fota_type):
logger.debug(f"Testing fota resumption on disconnect for {fota_type} fota")
Expand Down Expand Up @@ -57,7 +56,7 @@ def _run_fota(bundleId, fota_type, fotatimeout=APP_FOTA_TIMEOUT, test_fota_resum
reset_device()
t91x_fota.uart.wait_for_str("Connected to Cloud")

job_id = post_job(t91x_fota, bundleId, fota_type)
post_job(t91x_fota, bundleId, fota_type)

# if test_fota_resumption:
# run_fota_resumption(t91x_fota, fota_type)
Expand Down

0 comments on commit d9adeeb

Please sign in to comment.