add get system info method
This commit is contained in:
@@ -43,8 +43,10 @@ def get_last_eventlog_line(ip):
|
||||
|
||||
def run_firmware_update(ip):
|
||||
"""Run the firmware update command and check for success."""
|
||||
#command = "/usr/local/chromeos-firmwareupdate_132_mp -m factory"
|
||||
command = "chromeos-firmwareupdate -m factory"
|
||||
command = "/usr/local/chromeos-firmwareupdate_joxer_r132 -m factory"
|
||||
print(f"Firmware update command: {command}")
|
||||
|
||||
# command = "chromeos-firmwareupdate -m factory"
|
||||
|
||||
stdout, stderr = run_ssh_command(ip, command)
|
||||
if stdout and "Firmware updater exits successfully" in stdout:
|
||||
@@ -95,6 +97,7 @@ def main():
|
||||
ip = args.remote
|
||||
loops = args.loops
|
||||
failures = 0
|
||||
get_system_info(ip)
|
||||
|
||||
for i in range(1, loops + 1):
|
||||
print(f"\nStarting loop {i}/{loops}...")
|
||||
@@ -123,6 +126,7 @@ def main():
|
||||
print("Failed to retrieve final event log. Aborting loop.")
|
||||
failures += 1
|
||||
continue
|
||||
print(f"Final event log line: {final_log}")
|
||||
|
||||
if final_log == initial_log:
|
||||
print("Event log did not change after firmware update!")
|
||||
|
||||
Reference in New Issue
Block a user