Skip to content

Commit ef4a0cc

Browse files
committed
update the script logging
1 parent 6ebc18e commit ef4a0cc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scripts/gha/test_simulator.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,19 +90,19 @@ def main(argv):
9090
testapps.append((_get_bundle_id(full_path), full_path))
9191

9292
if not testapps:
93-
logging.error("No testapps found")
93+
logging.info("No testapps found")
9494
return 1
9595

9696
logging.info("Testapps found: %s", "\n".join(path for _, path in testapps))
9797

9898
gameloop_app = _unzip_gameloop(gameloop_zip)
9999
if not gameloop_app:
100-
logging.error("gameloop app not found")
100+
logging.info("gameloop app not found")
101101
return 2
102102

103103
device_id = _boot_simulator(ios_device)
104104
if not device_id:
105-
logging.error("simulator created fail")
105+
logging.info("simulator created fail")
106106
return 3
107107

108108
tests = []
@@ -177,7 +177,7 @@ def _get_bundle_id(app_path):
177177

178178
def _run_gameloop_test(bundle_id, app_path, gameloop_app, device_id):
179179
"""Run gameloop test and collect test result."""
180-
logging.info("Running test: %s", app_path)
180+
logging.info("Running test: %s, %s, %s, %s", bundle_id, app_path, gameloop_app, device_id)
181181
_install_app(app_path, device_id)
182182
_run_xctest(gameloop_app, device_id)
183183
logs = _get_test_log(bundle_id, app_path, device_id)
@@ -208,7 +208,7 @@ def _get_test_log(bundle_id, app_path, device_id):
208208
capture_output=True, text=True, check=False)
209209

210210
if not result.stdout:
211-
logging.error("No test Result")
211+
logging.info("No test Result")
212212
return None
213213

214214
log_path = os.path.join(result.stdout.strip(), "Documents/GameLoopResults/Results1.json")
@@ -224,7 +224,7 @@ def _run_xctest(gameloop_app, device_id):
224224
result = subprocess.run(args=args, capture_output=True, text=True, check=False)
225225

226226
if not result.stdout:
227-
logging.error("No xctest result")
227+
logging.info("No xctest result")
228228
return None
229229

230230
result = result.stdout.splitlines()

0 commit comments

Comments
 (0)