[OE-core] [PATCH 6/8] busybox: remove three hostname test cases

ChenQi Qi.Chen at windriver.com
Thu Nov 22 02:19:25 UTC 2018


On 11/21/2018 08:16 PM, Burton, Ross 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.

Very good idea! I'll try this out.

>> 2) hostname may set to some value, e.g. qemux86-64, which is not an entry in /etc/hosts
>>     This results in lookup failure when using `hostname -f' as there's no entry in /etc/hosts.
> Let's fix the hostname setup so hosts is correct too.

OK.
Currently, we set hostname to ${MACHINE}. To ensure it's also an entry 
in /etc/hosts, it seems that we have to default it to 'localhost'. I'm 
going to test with this change. If you have other candidates, please let 
me know.

Best Regards,
Chen Qi

> Ross
>



More information about the Openembedded-core mailing list