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 firefox arm64 builds (#16157)

Andrey Lushnikov1ef1e1f5bdab
diff --git a/browser_patches/docker_build.sh b/browser_patches/docker_build.sh
index 503d4ce133..9a84c27a6b 100755
--- a/browser_patches/docker_build.sh
+++ b/browser_patches/docker_build.sh
@@ -212,6 +212,11 @@ elif [[ "$2" == "compile" ]]; then
export CC=/usr/bin/clang-12
export CXX=/usr/bin/clang++-12
fi
+ # For non-login non-interactive shells, we have to source
+ # cargo env explicitly since /env/environment is not read.
+ if [[ -f "$HOME/.cargo/env" ]]; then
+ source "$HOME/.cargo/env"
+ fi
./browser_patches/checkout_build_archive_upload.sh "${BUILD_FLAVOR}"
'
elif [[ "$2" == "enter" || -z "$2" ]]; then