Skip to content

Commit

Permalink
ifiux
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiaswal committed Nov 29, 2024
1 parent 0c15871 commit d523102
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/case/ietf_system/upgrade/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ class Uboot:
def __init__(self, ssh):
self.ssh=ssh
print("UBOOT DETECTED")

def get_boot_order(self):
order=self.ssh.runsh("sudo fw_printenv BOOT_ORDER").split("=")
order=self.ssh.runsh("sudo fw_printenv BOOT_ORDER").stdout.split("=")
return order[1]

def set_boot_order(self, order):
return self.ssh.run(f"sudo fw_setenv BOOT_ORDER '{order}'".split()).returncode

Expand Down

0 comments on commit d523102

Please sign in to comment.