mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-10-30 02:22:44 +00:00
Wifi 13117 (#856)
* Modified logic in setup_firmware method Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com> * Removed test_firmware_upgrade_status_AP test case and modified logic for test_get_firmware_version_list method Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com> --------- Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
This commit is contained in:
@@ -744,8 +744,19 @@ class tip_2x:
|
||||
# get the latest branch
|
||||
firmware_list = self.firmware_library_object.get_firmwares(
|
||||
model=self.device_under_tests_info[ap]['model'], branch="", commit_id='')
|
||||
firmware_list.reverse()
|
||||
|
||||
# firmware_list.reverse()
|
||||
# Firmware list from newer to older image
|
||||
image_date = []
|
||||
for i in firmware_list:
|
||||
image_date.append(i["imageDate"])
|
||||
image_date.sort(reverse=True)
|
||||
ordered_list_firmware = []
|
||||
for i in image_date:
|
||||
for j in firmware_list:
|
||||
if i == j["imageDate"]:
|
||||
ordered_list_firmware.append(j)
|
||||
break
|
||||
firmware_list = ordered_list_firmware
|
||||
for firmware in firmware_list:
|
||||
if firmware['image'] == "":
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user