mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix broken test on Ubuntu 24.04
This commit is contained in:
parent
f72dd1477e
commit
7835f3acb1
1 changed files with 4 additions and 5 deletions
|
@ -234,11 +234,10 @@ def test_which(grains, modules):
|
|||
"""
|
||||
test finding the package owning a file
|
||||
"""
|
||||
if grains["os_family"] in ["Debian", "RedHat"]:
|
||||
file = "/bin/mknod"
|
||||
else:
|
||||
file = "/usr/local/bin/salt-call"
|
||||
ret = modules.pkg.which(file)
|
||||
binary = "/bin/ls"
|
||||
if grains["os"] == "Ubuntu" and grains["osmajorrelease"] >= 24:
|
||||
binary = "/usr/bin/ls"
|
||||
ret = modules.pkg.which(binary)
|
||||
assert len(ret) != 0
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue