playwright/utils/avd_stop.sh

11 lines
297 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -e
if [[ -z "${ANDROID_HOME}" ]]; then
2024-02-05 22:39:00 +03:00
export ANDROID_HOME="$PWD/.android-sdk"
fi
echo "Killing previous emulators"
${ANDROID_HOME}/platform-tools/adb devices | grep emulator | cut -f1 | while read line; do ${ANDROID_HOME}/platform-tools/adb -s $line emu kill; done