grubtarget.py: Change 'test' GRUB entry selection method
Using character combinations for <arrow down> to select the test image will not always work. Using the '--hotkey x' option added to the 'test' GRUB menuentry to select the 'test' GRUB entry. (From meta-yocto rev: 962003f77258bd7d1e8b3fb034c6e256c7879c8d) Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
581a06afb5
commit
868a234075
|
@ -55,7 +55,7 @@ class GrubTarget(MasterImageHardwareTarget):
|
|||
serialconn = pexpect.spawn(self.serialcontrol_cmd, env=self.origenv, logfile=sys.stdout)
|
||||
serialconn.expect("GNU GRUB version 2.00")
|
||||
serialconn.expect("Linux")
|
||||
serialconn.sendline("OB\r")
|
||||
serialconn.sendline("x")
|
||||
serialconn.expect("login:", timeout=120)
|
||||
serialconn.close()
|
||||
except pexpect.ExceptionPexpect as e:
|
||||
|
|
Loading…
Reference in New Issue