diff mbox series

[v2] Fix failing nss/tst-nss-files-hosts-long.

Message ID 20210712090053.3235454-1-stli@linux.ibm.com
State New
Headers show
Series [v2] Fix failing nss/tst-nss-files-hosts-long. | expand

Commit Message

Stefan Liebler July 12, 2021, 9 a.m. UTC
Sometimes the test nss/tst-nss-files-hosts-long is failing as getent
fails with exit-code 2.

This happens if tst-reload1 was run just before this test:
make t=nss/tst-reload1 test
make t=nss/tst-nss-files-hosts-long test
Then the test fails as /etc/nsswitch.conf contains "hosts: test2"
and the hosts are not searched in /etc/hosts at all.

Thus this patch just requests a post cleanup after nss/tst-reload1
has run.
---
 nss/tst-reload1.root/postclean.req | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 nss/tst-reload1.root/postclean.req

Comments

Florian Weimer July 12, 2021, 9:31 a.m. UTC | #1
* Stefan Liebler:

> Sometimes the test nss/tst-nss-files-hosts-long is failing as getent
> fails with exit-code 2.
>
> This happens if tst-reload1 was run just before this test:
> make t=nss/tst-reload1 test
> make t=nss/tst-nss-files-hosts-long test
> Then the test fails as /etc/nsswitch.conf contains "hosts: test2"
> and the hosts are not searched in /etc/hosts at all.
>
> Thus this patch just requests a post cleanup after nss/tst-reload1
> has run.
> ---
>  nss/tst-reload1.root/postclean.req | 0
>  1 file changed, 0 insertions(+), 0 deletions(-)
>  create mode 100644 nss/tst-reload1.root/postclean.req
>
> diff --git a/nss/tst-reload1.root/postclean.req b/nss/tst-reload1.root/postclean.req
> new file mode 100644
> index 0000000000..e69de29bb2

Looks okay to me.

Thanks,
Florian
Stefan Liebler July 12, 2021, 9:59 a.m. UTC | #2
On 12/07/2021 11:31, Florian Weimer wrote:
> * Stefan Liebler:
> 
>> Sometimes the test nss/tst-nss-files-hosts-long is failing as getent
>> fails with exit-code 2.
>>
>> This happens if tst-reload1 was run just before this test:
>> make t=nss/tst-reload1 test
>> make t=nss/tst-nss-files-hosts-long test
>> Then the test fails as /etc/nsswitch.conf contains "hosts: test2"
>> and the hosts are not searched in /etc/hosts at all.
>>
>> Thus this patch just requests a post cleanup after nss/tst-reload1
>> has run.
>> ---
>>  nss/tst-reload1.root/postclean.req | 0
>>  1 file changed, 0 insertions(+), 0 deletions(-)
>>  create mode 100644 nss/tst-reload1.root/postclean.req
>>
>> diff --git a/nss/tst-reload1.root/postclean.req b/nss/tst-reload1.root/postclean.req
>> new file mode 100644
>> index 0000000000..e69de29bb2
> 
> Looks okay to me.
> 
> Thanks,
> Florian
> 

Committed.

Thanks,
Stefan
diff mbox series

Patch

diff --git a/nss/tst-reload1.root/postclean.req b/nss/tst-reload1.root/postclean.req
new file mode 100644
index 0000000000..e69de29bb2