Skip to content

Commit 72172e9

Browse files
committed
Add logging to simulator test.
1 parent d05287e commit 72172e9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/gha/test_simulator.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ def main(argv):
249249
ios_helper_project = os.path.join(current_dir, CONSTANTS[FLAGS.test_type]["apple_path"])
250250
ios_helper_app = _build_ios_helper(ios_helper_project, device_name, device_os)
251251
if not ios_helper_app:
252+
252253
logging.error("helper app not found")
253254
return 22
254255

@@ -364,11 +365,13 @@ def _build_ios_helper(helper_project, device_name, device_os):
364365
logging.info("Building game-loop test: %s", " ".join(args))
365366
subprocess.run(args=args, check=True)
366367

368+
all_files_list = []
367369
for file_dir, _, file_names in os.walk(output_path):
368370
for file_name in file_names:
371+
all_files_list.append(file_name)
369372
if file_name.endswith(".xctestrun") and "iphonesimulator" in file_name:
370373
return os.path.join(file_dir, file_name)
371-
374+
logging.error("Couldn't find helper app in file list: %s", "\n".join(all_files_list))
372375

373376
def _build_tvos_helper(helper_project, device_name, device_os):
374377
"""Build helper UI Test app.

0 commit comments

Comments
 (0)