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.
Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
serialconn = pexpect.spawn(self.serialcontrol_cmd, env=self.origenv, logfile=sys.stdout)
serialconn.expect("GNU GRUB version 2.00")
serialconn.expect("Linux")
- serialconn.sendline("\eOB\r")
+ serialconn.sendline("x")
serialconn.expect("login:", timeout=120)
serialconn.close()
except pexpect.ExceptionPexpect as e: