Only windows doesn't have all binaries. Assert against that too.

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2023-04-15 16:27:43 +01:00 committed by Pedro Algarvio
parent fc814d75f1
commit f56dfae0c0

View file

@ -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()