Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test: add host GPU support on Android tests (#16241)
Max Schmitt841ee02dc23b
diff --git a/utils/avd_start.sh b/utils/avd_start.shindex ed3352bbbb..58ed28b879 100755--- a/utils/avd_start.sh+++ b/utils/avd_start.sh@@ -10,13 +10,10 @@ fibash $PWD/utils/avd_stop.sh-EMULATOR_GPU="host"-if [[ -n "${GITHUB_ACTIONS}" ]]; then- EMULATOR_GPU="swiftshader_indirect"-fi-echo "Starting emulator"-nohup ${ANDROID_HOME}/emulator/emulator -avd android33 -no-audio -no-window -gpu ${EMULATOR_GPU} -no-boot-anim &+# On normal macOS GitHub Action runners, the host GPU is not available. So 'swiftshader_indirect' would have to be used.+# Since we (Playwright) run our tests on a selfhosted mac, the host GPU is available, so we use it.+nohup ${ANDROID_HOME}/emulator/emulator -avd android33 -no-audio -no-window -gpu host -no-boot-anim &${ANDROID_HOME}/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do sleep 1; done; input keyevent 82'${ANDROID_HOME}/platform-tools/adb devicesecho "Emulator started"