mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix amazon linux 2 tests
This commit is contained in:
parent
1c312ca9c0
commit
66bdc36a31
3 changed files with 8 additions and 2 deletions
|
@ -516,7 +516,7 @@ class SaltPkgInstall:
|
|||
gpg_key = "SALT-PROJECT-GPG-PUBKEY-2023.pub"
|
||||
|
||||
if platform.is_aarch64():
|
||||
arch = "aarch64"
|
||||
arch = "arm64"
|
||||
else:
|
||||
arch = "x86_64"
|
||||
ret = self.proc.run(
|
||||
|
|
|
@ -64,6 +64,8 @@ def test_pkg(grains):
|
|||
elif grains["os_family"] == "RedHat":
|
||||
if grains["os"] == "VMware Photon OS":
|
||||
_pkg = "snoopy"
|
||||
elif grains["osfinger"] == "Amazon Linux-2023":
|
||||
return "dnf-utils"
|
||||
else:
|
||||
_pkg = "units"
|
||||
elif grains["os_family"] == "Debian":
|
||||
|
|
|
@ -237,7 +237,11 @@ 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") or grains["os"] == "VMware Photon OS":
|
||||
if (
|
||||
grains["osfinger"] in ("CentOS Linux-7")
|
||||
or grains["os"] == "VMware Photon OS"
|
||||
or grains["osfinger"] == "Amazon Linux-2"
|
||||
):
|
||||
pytest.skip("copr plugin not installed on {} CI".format(grains["osfinger"]))
|
||||
if (
|
||||
grains["os"] in ("CentOS Stream", "AlmaLinux")
|
||||
|
|
Loading…
Add table
Reference in a new issue