Simplify logic

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2023-10-20 13:38:09 +01:00 committed by Pedro Algarvio
parent 66bdc36a31
commit 1195971ffd

View file

@ -238,9 +238,8 @@ def test_pkgrepo_with_comments(pkgrepo, pkgrepo_with_comments_name, subtests):
@pytest.fixture
def copr_pkgrepo_with_comments_name(pkgrepo, grains):
if (
grains["osfinger"] in ("CentOS Linux-7")
grains["osfinger"] in ("CentOS Linux-7", "Amazon Linux-2")
or grains["os"] == "VMware Photon OS"
or grains["osfinger"] == "Amazon Linux-2"
):
pytest.skip("copr plugin not installed on {} CI".format(grains["osfinger"]))
if (