Don't run --help on salt-proxy script for classic macos packages, it doesn't work for now

This commit is contained in:
MKLeb 2023-09-06 12:47:35 -04:00 committed by Pedro Algarvio
parent 9114e86da0
commit b867063395

View file

@ -1,5 +1,7 @@
import subprocess
from pytestskipmarkers.utils import platform
def test_help(install_salt):
"""
@ -12,6 +14,10 @@ def test_help(install_salt):
# Singlebin build, unable to get the version
continue
# TODO: Remove this condition once the fixed 3005.x classic packages are released.
if "salt-proxy" in cmd[0] and platform.is_darwin() and install_salt.classic:
continue
if "python" in cmd[0] and len(cmd) == 1:
ret = install_salt.proc.run(
*cmd, "--version", stdout=subprocess.PIPE, stderr=subprocess.PIPE