MCPcopy
hub / github.com/saltstack/salt / ci_test_onedir

Function ci_test_onedir

noxfile.py:1239–1255  ·  view source on GitHub ↗
(session)

Source from the content-addressed store, hash-verified

1237 venv_params=["--system-site-packages"],
1238)
1239def ci_test_onedir(session):
1240 if not ONEDIR_ARTIFACT_PATH.exists():
1241 session.error(
1242 "The salt onedir artifact, expected to be in '{}', was not found".format(
1243 ONEDIR_ARTIFACT_PATH.relative_to(REPO_ROOT)
1244 )
1245 )
1246
1247 transport = os.environ.get("SALT_TRANSPORT") or "zeromq"
1248 valid_transports = ("zeromq", "tcp")
1249 if transport not in valid_transports:
1250 session.error(
1251 "The value for the SALT_TRANSPORT environment variable can only be "
1252 f"one of: {', '.join(valid_transports)}"
1253 )
1254
1255 _ci_test(session, "zeromq", onedir=True)
1256
1257
1258@nox.session(

Callers

nothing calls this directly

Calls 5

_ci_testFunction · 0.85
formatMethod · 0.80
existsMethod · 0.45
errorMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected