mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
Only windows doesn't have all binaries. Assert against that too.
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
fc814d75f1
commit
f56dfae0c0
1 changed files with 5 additions and 1 deletions
|
@ -62,7 +62,11 @@ def test_compare_versions(version, binary, install_salt):
|
|||
ret = install_salt.proc.run(*install_salt.binary_paths[binary], "--version")
|
||||
ret.stdout.matcher.fnmatch_lines([f"*{version}*"])
|
||||
else:
|
||||
pytest.skip(f"Binary not available: {binary}")
|
||||
if platform.is_windows():
|
||||
pytest.skip(f"Binary not available on windows: {binary}")
|
||||
pytest.fail(
|
||||
f"Platform is not Windows and yet the binary {binary!r} is not available"
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.skip_unless_on_darwin()
|
||||
|
|
Loading…
Add table
Reference in a new issue