Skip to content

Commit

Permalink
Update tools/python/util/android/android.py
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
jchen351 and github-actions[bot] authored Nov 16, 2024
1 parent a405d62 commit b9ea99c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/python/util/android/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ def stop_emulator_by_pid(emulator_pid: int, timeout: int = 120):
while is_emulator_running_by_pid(emulator_pid):
if datetime.datetime.now() > end_time:
raise RuntimeError(
f"Failed to stop the emulator with PID {emulator_pid} within the specified timeout = {timeout} seconds.")
f"Failed to stop the emulator with PID {emulator_pid} within the specified timeout = {timeout} seconds."
)
_log.debug("Emulator still running. Checking again in 5 seconds...")
time.sleep(interval)

Expand Down

0 comments on commit b9ea99c

Please sign in to comment.