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

Burton, Ross ross.burton at intel.com
Thu Mar 9 19:57:25 UTC 2017


On 23 January 2017 at 22:13, <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:

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?

(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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20170309/da595983/attachment-0002.html>


More information about the Openembedded-core mailing list