Skip to content

Commit

Permalink
Also check for SALT_TRANSPORT in ci_test_onedir
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
  • Loading branch information
s0undt3ch committed Oct 1, 2023
1 parent 6164155 commit a6b3b79
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -1174,6 +1174,14 @@ def ci_test_onedir(session):
)
)

transport = os.environ.get("SALT_TRANSPORT") or "zeromq"
valid_transports = ("zeromq", "tcp")
if transport not in valid_transports:
session.error(
"The value for the SALT_TRANSPORT environment variable can only be "
f"one of: {', '.join(valid_transports)}"
)

_ci_test(session, "zeromq", onedir=True)


Expand Down

0 comments on commit a6b3b79

Please sign in to comment.