Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XCodebuild Environment Variable Setup #314

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion builder/actions/setup_cross_ci_crt_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,13 @@


class SetupCrossCICrtEnvironment(Action):
def __init__(self, use_xcodebuild=False):
# set to true if using Apple XCodebuild
self.use_xcodebuild = use_xcodebuild

def _setenv(self, env, env_name, env_data, is_secret=False):
if self.use_xcodebuild:
env_name = "TEST_RUNNER_"+env_name
# Kinda silly to have a function for this, but makes the API calls consistent and looks better
# beside the other functions...
env.shell.setenv(env_name, str(env_data), is_secret=is_secret)
Expand Down Expand Up @@ -433,7 +438,7 @@ def _common_setup(self, env):

pass

def run(self, env):
def run(self, env, is_xcodebuild=False):
# A special environment variable indicating that we want to dump test environment variables to a specified file.
env_dump_file = env.shell.getenv("AWS_SETUP_CRT_TEST_ENVIRONMENT_DUMP_FILE")

Expand Down