mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Special-case Ubuntu 24.04
This commit is contained in:
parent
6161ebc8f6
commit
790304df99
1 changed files with 5 additions and 2 deletions
|
@ -213,11 +213,14 @@ def test_mod_del_repo_multiline_values(modules):
|
|||
|
||||
|
||||
@pytest.mark.requires_salt_modules("pkg.owner")
|
||||
def test_owner(modules):
|
||||
def test_owner(modules, grains):
|
||||
"""
|
||||
test finding the package owning a file
|
||||
"""
|
||||
binary = shutil.which("ls")
|
||||
binary = "/bin/ls"
|
||||
if grains["os"] == "Ubuntu" and grains["osmajorrelease"] >= 24:
|
||||
binary = "/usr/bin/ls"
|
||||
|
||||
ret = modules.pkg.owner(binary)
|
||||
assert len(ret) != 0
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue