16
16
MFW_202_FILEPATH = "artifacts/mfw_nrf91x1_2.0.2.zip"
17
17
DELTA_MFW_BUNDLEID = "MODEM*3471f88e*mfw_nrf91x1_2.0.2-FOTA-TEST"
18
18
FULL_MFW_BUNDLEID = "MDM_FULL*124c2b20*mfw_nrf91x1_full_2.0.2"
19
+ APP_BUNDLEID = "APP*a82b7076*v2.0.1"
19
20
20
21
APP_FOTA_TIMEOUT = 60 * 10
21
22
FULL_MFW_FOTA_TIMEOUT = 60 * 30
@@ -74,27 +75,14 @@ def _run_fota(bundleId, fota_type, fotatimeout=APP_FOTA_TIMEOUT, test_fota_resum
74
75
75
76
return _run_fota
76
77
77
- def test_app_fota (t91x_fota , hex_file , run_fota_fixture ):
78
+ def test_app_fota (run_fota_fixture ):
78
79
'''
79
80
Test application FOTA on nrf9151
80
81
'''
81
- # Get latest APP fota bundle
82
- results = t91x_fota .fota .get_fota_bundles ()
83
- if not results :
84
- pytest .fail ("Failed to get APP FOTA bundles" )
85
- available_bundles = results ["bundles" ]
86
- logger .debug (f"Number of available bundles: { len (available_bundles )} " )
87
- app_bundles = [bundle for bundle in available_bundles if "APP" in bundle ["bundleId" ]]
88
- if not app_bundles :
89
- pytest .fail ("No APP FOTA bundles found" )
90
- latest_app_bundle = app_bundles [0 ]
82
+ run_fota_fixture (bundleId = APP_BUNDLEID , fota_type = "app" , test_fota_resumption = True )
91
83
92
- logger .debug (f"Latest APP bundle: { latest_app_bundle } " )
93
84
94
- run_fota_fixture (bundleId = latest_app_bundle ["bundleId" ], fota_type = "app" , test_fota_resumption = True )
95
-
96
-
97
- def test_delta_mfw_fota (t91x_board , hex_file , run_fota_fixture ):
85
+ def test_delta_mfw_fota (run_fota_fixture ):
98
86
'''
99
87
Test delta modem FOTA on nrf9151
100
88
'''
@@ -109,7 +97,7 @@ def test_delta_mfw_fota(t91x_board, hex_file, run_fota_fixture):
109
97
flash_device (os .path .abspath (MFW_202_FILEPATH ))
110
98
111
99
@pytest .mark .slow
112
- def test_full_mfw_fota (t91x_board , hex_file , run_fota_fixture ):
100
+ def test_full_mfw_fota (run_fota_fixture ):
113
101
'''
114
102
Test full modem FOTA on nrf9151
115
103
'''
0 commit comments