mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
test(conftest): adjust PATH
on macOS jobs only (not Vagrant)
This commit is contained in:
parent
1b0f65538d
commit
9818c45d88
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ log = logging.getLogger(__name__)
|
|||
|
||||
@pytest.fixture(scope="session")
|
||||
def host():
|
||||
if os.environ.get("RUNNER_OS", "") == "macOS":
|
||||
if os.environ.get("RUNNER_OS", "") == "macOS" and os.environ.get("KITCHEN_LOCAL_YAML", "") == "kitchen.macos.yml":
|
||||
# Adjust the `PATH` so that the `salt-call` executable can be found
|
||||
os.environ["PATH"] = "/opt/salt/bin{}{}".format(os.pathsep, os.environ["PATH"])
|
||||
return testinfra.get_host("local://", sudo=True)
|
||||
|
|
Loading…
Add table
Reference in a new issue