On Thu, 2021-02-25 at 13:17 -0800, Khem Raj wrote:
> Distros may not use shadow for login manager
> secondly login --help return 0 not 1 so adjust the check accordingly
> 
> Signed-off-by: Khem Raj <raj.k...@gmail.com>
> ---
>  meta/lib/oeqa/runtime/cases/pam.py | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/meta/lib/oeqa/runtime/cases/pam.py 
> b/meta/lib/oeqa/runtime/cases/pam.py
> index 271a1943e3..a61b5a881e 100644
> --- a/meta/lib/oeqa/runtime/cases/pam.py
> +++ b/meta/lib/oeqa/runtime/cases/pam.py
> @@ -17,7 +17,7 @@ class PamBasicTest(OERuntimeTestCase):
>          status, output = self.target.run('login --help')
>          msg = ('login command does not work as expected. '
>                 'Status and output:%s and %s' % (status, output))
> -        self.assertEqual(status, 1, msg = msg)
> +        self.assertEqual(status, 0, msg = msg)

Surely just changing the exit status to the opposite will cause the 
autobuilder to fail this instead?

Cheers,

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#148626): 
https://lists.openembedded.org/g/openembedded-core/message/148626
Mute This Topic: https://lists.openembedded.org/mt/80912846/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to