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 db94c41 commit 5c5b014
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tools/python/util/android/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,7 @@ def is_emulator_running_by_avd(avd_name: str) -> bool:
# Step 2: Check each running emulator's AVD name
for emulator in running_emulators:
try:
avd_info = subprocess.check_output(
["adb", "-s", emulator, "emu", "avd", "name"], text=True
).strip()
avd_info = subprocess.check_output(["adb", "-s", emulator, "emu", "avd", "name"], text=True).strip()
if avd_info == avd_name:
return True
except subprocess.SubprocessError:
Expand Down

0 comments on commit 5c5b014

Please sign in to comment.