Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Some uboots don't have echo, support them too
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Anderson <[email protected]>
  • Loading branch information
mbanders committed Aug 31, 2016
1 parent 45a2111 commit f2423c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion devices/openwrt_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,11 @@ def reset(self, break_into_uboot=False):
self.expect('Hit any key ')
self.sendline('\n\n\n\n\n\n\n') # try really hard
self.expect(self.uprompt, timeout=4)
# Confirm we are in uboot by typing any command.
# If we weren't in uboot, we wouldn't see the command
# that we type.
self.sendline('echo FOO')
self.expect('echo FOO', timeout=4)
self.expect('FOO')
self.expect(self.uprompt, timeout=4)
return
except Exception as e:
Expand Down

0 comments on commit f2423c4

Please sign in to comment.