Skip to content

Commit e540508

Browse files
committed
update SetupCrossCICrtEnvironment with use_xcodebuld
1 parent 5f63f9b commit e540508

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

builder/actions/setup_cross_ci_crt_environment.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@
1919

2020

2121
class SetupCrossCICrtEnvironment(Action):
22+
def __init__(self, use_xcodebuild=False):
23+
# set to true if using Apple XCodebuild
24+
self.use_xcodebuild = use_xcodebuild
2225

2326
def _setenv(self, env, env_name, env_data, is_secret=False):
24-
if self.is_xcodebuild:
27+
if self.use_xcodebuild:
2528
env_name = "TEST_RUNNER_"+env_name
2629
# Kinda silly to have a function for this, but makes the API calls consistent and looks better
2730
# beside the other functions...
@@ -463,8 +466,6 @@ def run(self, env, is_xcodebuild=False):
463466
self.is_arm = False
464467
# Will be True if on Codebuild
465468
self.is_codebuild = False
466-
# Will be True if is using xcodebuild
467-
self.is_xcodebuild = is_xcodebuild
468469

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

0 commit comments

Comments
 (0)