Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Brentley Jones <github@brentleyjones.com>
  • Loading branch information
brentleyjones committed Nov 14, 2024
1 parent f6d3da6 commit e3686f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apple/testing/default_runner/simulator_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ def _boot_simulator(simulator_id: str) -> None:
# This is because the simulator is already booted, and we can ignore it
# if we check and the simulator is in fact booted.
if exit_code == 149:
devices = json.loads(
devices_for_id = json.loads(
_simctl(["list", "devices", "-j", simulator_id]),
)["devices"]
device = next(
(
blob
for blob in devices_for_os
for blob in devices_for_id
if blob["udid"] == simulator_id
),
None
Expand Down

0 comments on commit e3686f9

Please sign in to comment.