[OE-core] [PATCH] selftest/devtool: Add test to verify "modify virtual/kernel"

Jose Perez Carranza jose.perez.carranza at linux.intel.com
Thu Mar 9 20:29:53 UTC 2017


On 03/09/2017 01:57 PM, Burton, Ross wrote:
>
> On 23 January 2017 at 22:13, <jose.perez.carranza at linux.intel.com 
> <mailto:jose.perez.carranza at linux.intel.com>> wrote:
> >
> > +        checkmodcode = runCmd("strings %s | head -n 10 | grep '%s'" 
> % (bzimagefile, modstring))
>
>
> Annoyingly this bit is failing on some autobuilders:
>
Do you have a list of workers where this is failing ?
> AssertionError: Command 'strings 
> /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/tmp/work/qemux86-poky-linux/linux-yocto/4.10+git999-r0/image/boot/bzImage-4.10.0-yocto-standard 
> | head -n 10 | grep 'use a boot loader - Devtool kernel testing'' 
> returned non-zero exit status 1:
> BFD: 
> /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/tmp/work/qemux86-poky-linux/linux-yocto/4.10+git999-r0/image/boot/bzImage-4.10.0-yocto-standard: 
> Warning: Ignoring section flag IMAGE_SCN_MEM_NOT_PAGED in section .bss
>
> I'm wondering if grep on its own - not strings|head|grep - would work 
> around this?
>
I will try using grep and do some test to see if everything is OK. on 
local AB's
> (note that strings is "smart" and if executed on an ELF will use 
> libbfd to extract the segments with human strings in, which is why 
> it's returning errors from BFD)
>
> Ross

-- 
Saludos
José

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20170309/91636e6f/attachment-0002.html>


More information about the Openembedded-core mailing list