URL: https://github.com/SSSD/sssd/pull/5879 Author: sgoveas Title: #5879: TEST: Remove check for rhel 9 to enable CRB repo Action: opened
PR body: """ Tests will run for 8.6 and rhel 9 and both need CRB to be enabled. Removing the check for rhel 9, to make it work for 8.6 as well """ To pull the PR as Git branch: git remote add ghsssd https://github.com/SSSD/sssd git fetch ghsssd pull/5879/head:pr5879 git checkout pr5879
From 376660a557e67bb69a7b2d74a538fcfb3da0780a Mon Sep 17 00:00:00 2001 From: Steeve Goveas <sgov...@redhat.com> Date: Wed, 17 Nov 2021 12:59:23 +0530 Subject: [PATCH] TEST: Remove check for rhel 9 to enable CRB repo Tests will run for 8.6 and rhel 9 and both need CRB to be enabled. Removing the check for rhel 9, to make it work for 8.6 as well --- src/tests/multihost/ipa/conftest.py | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/tests/multihost/ipa/conftest.py b/src/tests/multihost/ipa/conftest.py index c039488433..a9186ae74a 100644 --- a/src/tests/multihost/ipa/conftest.py +++ b/src/tests/multihost/ipa/conftest.py @@ -171,18 +171,9 @@ def environment_setup(session_multihost, request): """ Install necessary packages """ - pre_version = "sed -rn 's/.*([0-9])\.[0-9].*/\\1/p' /etc/redhat-release" - client = session_multihost.client[0] - if "Red Hat" in client.run_command("cat " - "/etc/redhat-release").stdout_text: - version = [int(i) for i in - client.run_command(pre_version).stdout_text.split() - if i.isdigit()][0] - if version >= 9: - client.run_command("yum " - "--enablerepo=rhel-CRB install" - " -y shadow-utils*") - client.run_command("yum install -y shadow-utils*") + client.run_command("yum " + "--enablerepo=rhel-CRB install" + " -y shadow-utils*") client.run_command("yum install -y gcc") with pytest.raises(subprocess.CalledProcessError): client.run_command(f"grep subid /etc/nsswitch.conf")
_______________________________________________ sssd-devel mailing list -- sssd-devel@lists.fedorahosted.org To unsubscribe send an email to sssd-devel-le...@lists.fedorahosted.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedorahosted.org/archives/list/sssd-devel@lists.fedorahosted.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure