From d1298f2c372147eb6142c102c9499a2be6b96350 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Sat, 29 Jun 2019 16:29:48 -0400 Subject: [PATCH] Jenkins HITL exit upload monitor on nsh> --- Tools/HIL/monitor_firmware_upload.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Tools/HIL/monitor_firmware_upload.py b/Tools/HIL/monitor_firmware_upload.py index 8705676a82..50605de834 100755 --- a/Tools/HIL/monitor_firmware_upload.py +++ b/Tools/HIL/monitor_firmware_upload.py @@ -26,6 +26,11 @@ def monitor_firmware_upload(port, baudrate): finished = 1 break + if time.time() - timeout_start > 10: + if "nsh>" in serial_line: + finished = 1 + break + if time.time() > timeout_start + timeout: print("Error, timeout") finished = 1