From bbdfa88c912b37e914c00e34ab59a5b5bcf2c98c Mon Sep 17 00:00:00 2001 From: Sean Marlow Date: Mon, 20 Aug 2018 16:57:19 -0600 Subject: [PATCH] Update root pass test to work with SLE11. - --status option is not available thus use the shortcode -S. - Add locked status to valid values (LK). --- usr/share/lib/ipa/tests/SLES/test_sles_root_pass.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/share/lib/ipa/tests/SLES/test_sles_root_pass.py b/usr/share/lib/ipa/tests/SLES/test_sles_root_pass.py index ed5e88e6..aad534e0 100644 --- a/usr/share/lib/ipa/tests/SLES/test_sles_root_pass.py +++ b/usr/share/lib/ipa/tests/SLES/test_sles_root_pass.py @@ -4,6 +4,6 @@ def test_sles_root_pass(host): # Ensure root does not have a password result = host.run( - 'sudo passwd --status root' + 'sudo passwd -S root' ) - assert shlex.split(result.stdout.strip())[1] in ['L', 'NP'] + assert shlex.split(result.stdout.strip())[1] in ['L', 'LK', 'NP']