[OE-core] [PATCH 6/8] busybox: remove three hostname test cases
Burton, Ross
ross.burton at intel.com
Wed Nov 21 12:34:49 UTC 2018
On Wed, 21 Nov 2018 at 12:16, Burton, Ross <ross.burton at intel.com> wrote:
> On Wed, 21 Nov 2018 at 05:35, Chen Qi <Qi.Chen at windriver.com> wrote:
> > These three test case are removed because of two reasons.
> > 1) net-tools' hostname have different behaviour regarding some options
> > So when net-tools is installed, test cases may fail.
> > e.g.
> > test x$(hostname -i) = x$(busybox hostname -i)
>
> This is just a specific instance of the problem where alternatives may
> not be what you want. The busybox test suite should be sure it's
> running busybox tools. Having spoken to a few people about this
> already, maybe busybox-ptest should contain a symlink farm for all the
> applets to the busybox binary that run-ptest can put at the front of
> $PATH.
Something like this:
https://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=ross/mut&id=42ec5eaf3a6c512bffe03d20e7e512e8d87343ca
Example package contents at https://pastebin.com/5FpY9xyE
If run-ptest just puts that directory at the front of $PATH then
you'll be sure to be run the busybox tool.
Bonus points for making that a function in update-alternatives.bbclass
so every recipe with this problem can use it, but that would have to
happen at do_package time because of how that class works so I'm happy
enough with this for now.
Ross
More information about the Openembedded-core
mailing list