Skip to content

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

devops: rename env variable (#5379)

Andrey Lushnikov909544907c92
diff --git a/browser_patches/chromium/goma.sh b/browser_patches/chromium/goma.sh
index 970abb96fc..2807bed079 100755
--- a/browser_patches/chromium/goma.sh
+++ b/browser_patches/chromium/goma.sh
@@ -22,8 +22,10 @@ if [[ $1 == "--help" ]]; then
elif [[ $1 == "login" ]]; then
python ./third_party/goma/goma_auth.py login
elif [[ $1 == "start" ]]; then
- if [[ ! -z "$GOMA_LOGIN_COOKIE" ]]; then
- echo "$GOMA_LOGIN_COOKIE" > "$HOME/.goma_oauth2_config"
+ # We have to prefix ENV with `PLAYWRIGHT` since `GOMA_` env variables
+ # have special treatment by goma.
+ if [[ ! -z "$PLAYWRIGHT_GOMA_LOGIN_COOKIE" ]]; then
+ echo "$PLAYWRIGHT_GOMA_LOGIN_COOKIE" > "$HOME/.goma_oauth2_config"
fi
if [[ ! -f "$HOME/.goma_oauth2_config" ]]; then
echo "ERROR: goma is not logged in!"