Skip to content

Commit e8b034b

Browse files
tests: on_target: use 202 mfw
Update tests to use mfw 2.0.2. Signed-off-by: Giacomo Dematteis <giacomo.dematteis@nordicsemi.no>
1 parent 4ca8b78 commit e8b034b

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed
-7.62 MB
Binary file not shown.
7.73 MB
Binary file not shown.

tests/on_target/tests/test_functional/test_fota.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313

1414
logger = get_logger()
1515

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

2020
APP_FOTA_TIMEOUT = 60 * 10
2121
FULL_MFW_FOTA_TIMEOUT = 60 * 30
@@ -99,14 +99,15 @@ def test_delta_mfw_fota(t91x_board, hex_file, run_fota_fixture):
9999
'''
100100
Test delta modem FOTA on nrf9151
101101
'''
102-
# Flash with mfw201
103-
flash_device(os.path.abspath(MFW_201_FILEPATH))
104-
105-
# run_fota(DELTA_MFW_BUNDLEID, hex_file)
106-
run_fota_fixture(DELTA_MFW_BUNDLEID, "delta")
107-
108-
# Restore mfw201
109-
flash_device(os.path.abspath(MFW_201_FILEPATH))
102+
# Flash with mfw202
103+
flash_device(os.path.abspath(MFW_202_FILEPATH))
104+
105+
try:
106+
# run_fota(DELTA_MFW_BUNDLEID, hex_file)
107+
run_fota_fixture(DELTA_MFW_BUNDLEID, "delta")
108+
finally:
109+
# Restore mfw202, no matter if test pass/fails
110+
flash_device(os.path.abspath(MFW_202_FILEPATH))
110111

111112
@pytest.mark.slow
112113
def test_full_mfw_fota(t91x_board, hex_file, run_fota_fixture):

0 commit comments

Comments
 (0)