Jenkins HITL exit upload monitor on nsh>

This commit is contained in:
Daniel Agar 2019-06-29 16:29:48 -04:00
parent c165a6f71b
commit d1298f2c37
1 changed files with 5 additions and 0 deletions

View File

@ -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