Skip to content

Commit ea31fb6

Browse files
Pass through TEST_PREMATURE_EXIT_FILE to simulators (#2688)
Also pass through `TEST_UNDECLARED_OUTPUTS_DIR` in `ios_test_runner.template.sh`. Signed-off-by: Brentley Jones <[email protected]>
1 parent a94ad7f commit ea31fb6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apple/testing/default_runner/ios_test_runner.template.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ if [[ -n "${TEST_TYPE}" ]]; then
9999
runner_flags+=("--test_type=${TEST_TYPE}")
100100
fi
101101

102-
DEFAULT_ENV="TEST_SRCDIR=$TEST_SRCDIR,XML_OUTPUT_FILE=$XML_OUTPUT_FILE"
102+
DEFAULT_ENV="TEST_PREMATURE_EXIT_FILE=$TEST_PREMATURE_EXIT_FILE,TEST_SRCDIR=$TEST_SRCDIR,TEST_UNDECLARED_OUTPUTS_DIR=$TEST_UNDECLARED_OUTPUTS_DIR,XML_OUTPUT_FILE=$XML_OUTPUT_FILE"
103103
TEST_ENV="%(test_env)s"
104104
ENV_INHERIT=%(test_env_inherit)s
105105
for env_var in "${ENV_INHERIT[@]:-}"; do

apple/testing/default_runner/ios_xctestrun_runner.template.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ fi
134134

135135
# Add the test environment variables into the xctestrun file to propagate them
136136
# to the test runner
137-
default_test_env="TEST_SRCDIR=$TEST_SRCDIR,TEST_UNDECLARED_OUTPUTS_DIR=$TEST_UNDECLARED_OUTPUTS_DIR,XML_OUTPUT_FILE=$XML_OUTPUT_FILE"
137+
default_test_env="TEST_PREMATURE_EXIT_FILE=$TEST_PREMATURE_EXIT_FILE,TEST_SRCDIR=$TEST_SRCDIR,TEST_UNDECLARED_OUTPUTS_DIR=$TEST_UNDECLARED_OUTPUTS_DIR,XML_OUTPUT_FILE=$XML_OUTPUT_FILE"
138138
test_env="%(test_env)s"
139139
env_inherit=%(test_env_inherit)s
140140
for env_var in "${env_inherit[@]:-}"; do

0 commit comments

Comments
 (0)