authselect test: skip test if authselect is not available

Currently, the test is skipped if the platform is fedora-like. The
decision to skip should rather be based on authselect command
availability (i.e. when ipaplatform.paths.paths.AUTHSELECT is None).

Related to
https://pagure.io/freeipa/issue/7377

Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
Florence Blanc-Renaud
2018-04-27 16:49:50 +02:00
committed by Christian Heimes
parent 1c1089c44d
commit 63a5feb19f

View File

@@ -172,7 +172,7 @@ class TestClientInstallation(IntegrationTest):
@pytest.mark.skipif(
ipaplatform.NAME not in ['fedora', 'rhel', 'centos'],
ipaplatform.paths.paths.AUTHSELECT is None,
reason="Authselect is only available in fedora-like distributions")
class TestServerInstallation(IntegrationTest):
"""