mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Some more fixes for the tiamat downgrade tests for macos
This commit is contained in:
parent
a5d94bd33d
commit
57ffd67661
3 changed files with 3 additions and 2 deletions
|
@ -12,8 +12,6 @@ from pytestskipmarkers.utils import platform
|
|||
def pypath():
|
||||
if platform.is_windows():
|
||||
return pathlib.Path(os.getenv("ProgramFiles"), "Salt Project", "Salt")
|
||||
elif platform.is_darwin():
|
||||
return pathlib.Path("/opt", "salt", "bin")
|
||||
else:
|
||||
return pathlib.Path("/opt", "saltstack", "salt", "pypath", "bin")
|
||||
|
||||
|
|
|
@ -94,6 +94,8 @@ def test_symlinks_created(version, symlink, install_salt):
|
|||
"""
|
||||
Test symlinks created
|
||||
"""
|
||||
if not install_salt.classic and symlink == "spm":
|
||||
symlink = "salt-spm"
|
||||
ret = install_salt.proc.run(pathlib.Path("/usr/local/sbin") / symlink, "--version")
|
||||
ret.stdout.matcher.fnmatch_lines([f"*{version}*"])
|
||||
|
||||
|
|
|
@ -334,6 +334,7 @@ class SaltPkgInstall:
|
|||
self.binary_paths["python"] = [shutil.which("salt"), "shell"]
|
||||
if platform.is_darwin():
|
||||
self.binary_paths["pip"] = [self.run_root, "pip"]
|
||||
self.binary_paths["spm"] = [shutil.which("salt-spm")]
|
||||
else:
|
||||
self.binary_paths["pip"] = [shutil.which("salt-pip")]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue