]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
grubtarget.py: Change 'test' GRUB entry selection method
authorCorneliu Stoicescu <corneliux.stoicescu@intel.com>
Thu, 3 Jul 2014 17:57:10 +0000 (20:57 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 4 Jul 2014 07:43:53 +0000 (08:43 +0100)
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>
meta-yocto-bsp/lib/oeqa/controllers/grubtarget.py

index 02ada65da6093836912b6005f4f9048946f1dfe8..7bc807d2bc623a29e32eb8e1de73b754d971d997 100644 (file)
@@ -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("\eOB\r")
+            serialconn.sendline("x")
             serialconn.expect("login:", timeout=120)
             serialconn.close()
         except pexpect.ExceptionPexpect as e: