From 158257c4b3f0eb58db73ac667aae4feaef21b58b Mon Sep 17 00:00:00 2001 From: Timo Aaltonen Date: Fri, 17 Apr 2020 13:21:36 +0300 Subject: [PATCH] ipatests/test_commands: Check sssd version like on test_sssd Reviewed-By: Christian Heimes --- ipatests/test_integration/test_commands.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ipatests/test_integration/test_commands.py b/ipatests/test_integration/test_commands.py index bed63c5aa..9dc81da93 100644 --- a/ipatests/test_integration/test_commands.py +++ b/ipatests/test_integration/test_commands.py @@ -906,11 +906,10 @@ class TestIPACommand(IntegrationTest): if self.master.is_fips_mode: # pylint: disable=no-member pytest.skip("paramiko is not compatible with FIPS mode") - sssd_version = '' - cmd_output = self.master.run_command(['sssd', '--version']) - sssd_version = platform_tasks.\ - parse_ipa_version(cmd_output.stdout_text.strip()) - if sssd_version.version < '2.2.0': + cmd = self.master.run_command(['sssd', '--version']) + sssd_version = platform_tasks.parse_ipa_version( + cmd.stdout_text.strip()) + if sssd_version < platform_tasks.parse_ipa_version('2.2.0'): pytest.xfail(reason="sssd 2.2.0 unavailable in F29 nightly") username = "testuser" + str(random.randint(200000, 9999999))