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 build scripts

Andrey Lushnikovbfcd92da7ec5
diff --git a/browser_patches/firefox/build.sh b/browser_patches/firefox/build.sh
index 93e85e92a9..eadd946aff 100755
--- a/browser_patches/firefox/build.sh
+++ b/browser_patches/firefox/build.sh
@@ -3,7 +3,8 @@ set -e
set +x
trap "cd $(pwd -P)" EXIT
-cd checkout
+cd "$(dirname $0)"
+cd "checkout"
if ! [[ $(git rev-parse --abbrev-ref HEAD) == "pwdev" ]]; then
echo "ERROR: Cannot build any branch other than PWDEV"
diff --git a/browser_patches/webkit/build.sh b/browser_patches/webkit/build.sh
index 196cbe8213..2315846292 100755
--- a/browser_patches/webkit/build.sh
+++ b/browser_patches/webkit/build.sh
@@ -3,7 +3,8 @@ set -e
set +x
trap "cd $(pwd -P)" EXIT
-cd checkout
+cd "$(dirname $0)"
+cd "checkout"
if ! [[ $(git rev-parse --abbrev-ref HEAD) == "pwdev" ]]; then
echo "ERROR: Cannot build any branch other than PWDEV"