Skip to content

Commit

Permalink
Removed firmware version v2.0 for release latest and made generic for…
Browse files Browse the repository at this point in the history
… all firmware versions

Signed-off-by: jitendracandela <[email protected]>
  • Loading branch information
jitendracandela committed Dec 6, 2023
1 parent d842208 commit fdf503b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/tip_2x/tip_2x.py
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ def setup_firmware(self):
temp = "-".join(temp)
firmware['image'] = temp
if self.device_under_tests_info[ap]['firmware_version'].split('-')[0] == 'release':
if firmware['revision'].split("/")[1].replace(" ", "").split('-')[1].__contains__('v2.'):
if firmware['revision'].split("/")[1].replace(" ", "").split('-')[1][0] == "v":
logging.info("Target Firmware: \n" + str(firmware))
allure.attach(name="Target firmware : ", body=str(firmware))
target_revision = firmware['revision'].split("/")[1].replace(" ", "")
Expand Down Expand Up @@ -934,7 +934,7 @@ def setup_firmware(self):
target_fw = ""
for firmware in fw_list:
if self.device_under_tests_info[ap]['firmware_version'].split('-')[0] == 'release':
if firmware['revision'].split("/")[1].replace(" ", "").split('-')[1].__contains__('v2.'):
if firmware['revision'].split("/")[1].replace(" ", "").split('-')[1][0] == "v":
target_fw = firmware
break
if firmware['image'].split("-")[-2] == \
Expand Down

0 comments on commit fdf503b

Please sign in to comment.