Skip to content

Commit

Permalink
tests: on_target: use 202 mfw
Browse files Browse the repository at this point in the history
Update tests to use mfw 2.0.2.

Signed-off-by: Giacomo Dematteis <[email protected]>
  • Loading branch information
DematteisGiacomo committed Jan 6, 2025
1 parent 4ca8b78 commit e8b034b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
Binary file removed tests/on_target/artifacts/mfw_nrf91x1_2.0.1.zip
Binary file not shown.
Binary file added tests/on_target/artifacts/mfw_nrf91x1_2.0.2.zip
Binary file not shown.
23 changes: 12 additions & 11 deletions tests/on_target/tests/test_functional/test_fota.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

logger = get_logger()

MFW_201_FILEPATH = "artifacts/mfw_nrf91x1_2.0.1.zip"
DELTA_MFW_BUNDLEID = "MODEM*ad48df2a*mfw_nrf91x1_2.0.1-FOTA-TEST"
FULL_MFW_BUNDLEID = "MDM_FULL*bdd24c80*mfw_nrf91x1_full_2.0.1"
MFW_202_FILEPATH = "artifacts/mfw_nrf91x1_2.0.2.zip"
DELTA_MFW_BUNDLEID = "MODEM*3471f88e*mfw_nrf91x1_2.0.2-FOTA-TEST"
FULL_MFW_BUNDLEID = "MDM_FULL*124c2b20*mfw_nrf91x1_full_2.0.2"

APP_FOTA_TIMEOUT = 60 * 10
FULL_MFW_FOTA_TIMEOUT = 60 * 30
Expand Down Expand Up @@ -99,14 +99,15 @@ def test_delta_mfw_fota(t91x_board, hex_file, run_fota_fixture):
'''
Test delta modem FOTA on nrf9151
'''
# Flash with mfw201
flash_device(os.path.abspath(MFW_201_FILEPATH))

# run_fota(DELTA_MFW_BUNDLEID, hex_file)
run_fota_fixture(DELTA_MFW_BUNDLEID, "delta")

# Restore mfw201
flash_device(os.path.abspath(MFW_201_FILEPATH))
# Flash with mfw202
flash_device(os.path.abspath(MFW_202_FILEPATH))

try:
# run_fota(DELTA_MFW_BUNDLEID, hex_file)
run_fota_fixture(DELTA_MFW_BUNDLEID, "delta")
finally:
# Restore mfw202, no matter if test pass/fails
flash_device(os.path.abspath(MFW_202_FILEPATH))

@pytest.mark.slow
def test_full_mfw_fota(t91x_board, hex_file, run_fota_fixture):
Expand Down

0 comments on commit e8b034b

Please sign in to comment.