Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

devops: fix goma path on windows (#5381)

Andrey Lushnikov32d62a5c2dbe
diff --git a/browser_patches/chromium/build.sh b/browser_patches/chromium/build.sh
index 0b404bba6f..2eeba0f8ce 100755
--- a/browser_patches/chromium/build.sh
+++ b/browser_patches/chromium/build.sh
@@ -168,8 +168,12 @@ EOF
fi
if [[ ! -z "$USE_GOMA" ]]; then
+ PLAYWRIGHT_GOMA_PATH="${SCRIPT_PATH}/electron-build-tools/third_party/goma"
+ if [[ $1 == "--compile-win"* ]]; then
+ PLAYWRIGHT_GOMA_PATH=$(cygpath -w "${PLAYWRIGHT_GOMA_PATH}")
+ fi
echo 'use_goma = true' >> ./out/Default/args.gn
- echo "goma_dir = '${SCRIPT_PATH}/electron-build-tools/third_party/goma'" >> ./out/Default/args.gn
+ echo "goma_dir = '${PLAYWRIGHT_GOMA_PATH}'" >> ./out/Default/args.gn
fi
if [[ $1 == "--compile-win"* ]]; then