Skip to content

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

devops(firefox): properly cleanup old node.js artifact

Andrey Lushnikov8d4dc600f8eb
diff --git a/browser_patches/firefox/build.sh b/browser_patches/firefox/build.sh
index 27eb5af600..620bb91de4 100755
--- a/browser_patches/firefox/build.sh
+++ b/browser_patches/firefox/build.sh
@@ -80,7 +80,8 @@ echo "mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/${OBJ_FOLDER}" >> .mozconfig
if [[ $1 == "--full" ]]; then
if [[ "$(uname)" == "Darwin" && "$(uname -m)" == "arm64" ]]; then
./mach artifact toolchain --from-build macosx64-node
- mv node "$HOME/.mozbuild/node"
+ rm -rf "$HOME/.mozbuild/node"
+ mv node "$HOME/.mozbuild/"
elif [[ "$(uname)" == "Darwin" || "$(uname)" == "Linux" ]]; then
SHELL=/bin/sh ./mach bootstrap --application-choice=browser --no-interactive --no-system-changes
fi