Skip to content

Commit

Permalink
Tests: Add missing returncode to test_0004_bz1638295
Browse files Browse the repository at this point in the history
Reviewed-by: Anuj Borah <[email protected]>
  • Loading branch information
jakub-vavra-cz committed Oct 17, 2024
1 parent 94e47c5 commit 4a7ab02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests/multihost/alltests/test_sssctl_ldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def test_0004_bz1638295(self, multihost,
tools.sssd_conf("ifp", domain_params)
multihost.client[0].service_sssd('start')
cmd_id = multihost.client[0].run_command("id user5000", raiseonerr=False)
if cmd_id != 0:
if cmd_id.returncode != 0:
multihost.client[0].run_command("useradd -u 5000 user5000")
multihost.client[0].run_command("passwd --stdin user5000", stdin_text='Secret123')

Expand Down

0 comments on commit 4a7ab02

Please sign in to comment.