Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion iOS/testbed/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,14 @@ def run_testbed(simulator: str | None, args: list[str], verbose: bool = False):
update_test_plan(location, args)
print(" done.")

# xcodebuild doesn't guarantee that the CoreSimulatorService daemon is
# running prior to using a simulator, but calling `xcrun simctl list` does.
# Determining the default simulator that *would* be used is a cheap action;
# so use that as a way to ensure that the CoreSimulatorService daemon is
# running.
default_simulator = select_simulator_device()
if simulator is None:
simulator = select_simulator_device()
simulator = default_simulator
print(f"Running test on {simulator}")

xcode_test(location, simulator=simulator, verbose=verbose)
Expand Down
Loading