commit | e4bf33609f018e8a611e9caaa3fb00e19f99147a | [log] [tgz] |
---|---|---|
author | Andrew Jeffery <andrew@aj.id.au> | Thu Sep 28 10:32:05 2017 +0930 |
committer | Andrew Jeffery <andrew@aj.id.au> | Thu Sep 28 10:32:05 2017 +0930 |
tree | 28d555a4dd9f60122c8905d186d48ed06d2fb4c0 | |
parent | 75d9c246f9b8bd7bcc95cfa564beb6e0bd310a00 [diff] |
netboot: Cope with u-boot warning string Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/netboot/netboot b/netboot/netboot index 3c941a0..da289bf 100755 --- a/netboot/netboot +++ b/netboot/netboot
@@ -72,9 +72,10 @@ i, m, d = conn.expect_or_raise([ r"Bytes transferred = \d+ \([0-9a-f]+ hex\)", "Not retrying...", + r"## Warning:", r"[*]{3} ERROR:", ]) - if i == 1 or i == 2: + if i > 0: print("Error detected, exiting", file=sys.stderr) return