Skip to content

Commit

Permalink
test_pac_responder: Skip test if pac responder is not installed
Browse files Browse the repository at this point in the history
Merges: https://pagure.io/SSSD/sssd/pull-request/3881

Reviewed-by: Sumit Bose <sbose@redhat.com>
  • Loading branch information
Lukas Slebodnik authored and jhrozek committed Nov 13, 2018
1 parent 1ee12b0 commit 4f824ec
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/tests/intg/test_pac_responder.py
Expand Up @@ -27,6 +27,12 @@
from util import unindent


def have_sssd_responder(responder_name):
responder_path = os.path.join(config.LIBEXEC_PATH, "sssd", responder_name)

return os.access(responder_path, os.X_OK)


def stop_sssd():
with open(config.PIDFILE_PATH, "r") as pid_file:
pid = int(pid_file.read())
Expand Down Expand Up @@ -99,6 +105,8 @@ def timeout_handler(signum, frame):
raise Exception("Timeout")


@pytest.mark.skipif(not have_sssd_responder("sssd_pac"),
reason="No PAC responder, skipping")
def test_multithreaded_pac_client(local_domain_only, sssd_pac_test_client):
"""
Test for ticket
Expand Down

0 comments on commit 4f824ec

Please sign in to comment.