Skip to content

Commit

Permalink
test: Do not overwrite /etc/nsswitch.conf by authselect
Browse files Browse the repository at this point in the history
Should fix test_more_than_one_cn.

Reviewed-by: Madhuri Upadhye <[email protected]>
  • Loading branch information
jakub-vavra-cz committed Jun 12, 2024
1 parent 5ed2e37 commit 4990429
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tests/multihost/alltests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,10 @@ def setup_authselect(session_multihost):
"""
Make sure to use sssd as authselect profile
"""
session_multihost.client[0].run_command("authselect select sssd --force")
# We should not overwrite nsswitch that is changed/pre-configured
session_multihost.client[0].run_command(
"test -L /etc/nsswitch.conf && authselect select sssd --force", raiseonerr=False
)


@pytest.fixture(scope='function')
Expand Down

0 comments on commit 4990429

Please sign in to comment.