mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Pass CI_RUN
as an environment variable to the test run.
This allows us to know if we're running the test suite under a CI environment or not and adapt/adjust if needed
This commit is contained in:
parent
89b815a005
commit
6d5047492c
1 changed files with 1 additions and 1 deletions
|
@ -925,7 +925,7 @@ def _pytest(session, coverage, cmd_args):
|
|||
"pip", "uninstall", "-y", "pytest-salt", silent=True,
|
||||
)
|
||||
|
||||
env = {"PYTEST_SESSION": "1"}
|
||||
env = {"PYTEST_SESSION": "1", "CI_RUN": "1" if CI_RUN else "0"}
|
||||
if IS_DARWIN:
|
||||
# Don't nuke our multiprocessing efforts objc!
|
||||
# https://stackoverflow.com/questions/50168647/multiprocessing-causes-python-to-crash-and-gives-an-error-may-have-been-in-progr
|
||||
|
|
Loading…
Add table
Reference in a new issue