Fix ADB issues when testing

This commit is contained in:
topjohnwu
2024-12-21 12:45:23 -08:00
parent 9e03cbaed5
commit 6d220f44ca

View File

@@ -131,6 +131,10 @@ test_main() {
"$sdk" --channel=3 $avd_pkg "$sdk" --channel=3 $avd_pkg
echo no | "$avd" create avd -f -n test -k $avd_pkg echo no | "$avd" create avd -f -n test -k $avd_pkg
# Make sure ADB is behaving correctly
adb kill-server
adb start-server
# Launch stock emulator # Launch stock emulator
print_title "* Launching $avd_pkg" print_title "* Launching $avd_pkg"
"$emu" @test $emu_args >/dev/null 2>&1 & "$emu" @test $emu_args >/dev/null 2>&1 &