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:
Pedro Algarvio 2020-12-28 07:15:36 +00:00
parent 89b815a005
commit 6d5047492c

View file

@ -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