Skip to content

Commit

Permalink
update SetupCrossCICrtEnvironment with use_xcodebuld
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Dec 31, 2024
1 parent 5f63f9b commit e540508
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions builder/actions/setup_cross_ci_crt_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@


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.is_xcodebuild:
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...
Expand Down Expand Up @@ -463,8 +466,6 @@ def run(self, env, is_xcodebuild=False):
self.is_arm = False
# Will be True if on Codebuild
self.is_codebuild = False
# Will be True if is using xcodebuild
self.is_xcodebuild = is_xcodebuild

# Any easier way to use in docker without having to always modify the builder action
if (env.shell.getenv("SETUP_CROSSS_CRT_TEST_ENVIRONMENT_LOCAL", "0") == "1"):
Expand Down

0 comments on commit e540508

Please sign in to comment.