Skip to content

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

devops(webkit): teach pw_run.sh to work with local custom checkout

Andrey Lushnikovefa5a559ef20
diff --git a/browser_patches/webkit/pw_run.sh b/browser_patches/webkit/pw_run.sh
index 71c060241b..95c3debba1 100755
--- a/browser_patches/webkit/pw_run.sh
+++ b/browser_patches/webkit/pw_run.sh
@@ -6,6 +6,8 @@ function runOSX() {
DYLIB_PATH="$SCRIPT_PATH/checkout/WebKitBuild/Release"
elif [ -d $SCRIPT_PATH/MiniBrowser.app ]; then
DYLIB_PATH="$SCRIPT_PATH"
+ elif [ -d $SCRIPT_PATH/WebKitBuild/Release/MiniBrowser.app ]; then
+ DYLIB_PATH="$SCRIPT_PATH/WebKitBuild/Release"
else
echo "Cannot find a MiniBrowser.app in neither location" 1>&2
exit 1
@@ -22,6 +24,9 @@ function runLinux() {
elif [ -f $SCRIPT_PATH/MiniBrowser ]; then
LD_PATH="$SCRIPT_PATH"
MINIBROWSER="$SCRIPT_PATH/MiniBrowser"
+ elif [ -d $SCRIPT_PATH/WebKitBuild ]; then
+ LD_PATH="$SCRIPT_PATH/WebKitBuild/DependenciesGTK/Root/lib:$SCRIPT_PATH/WebKitBuild/Release/bin"
+ MINIBROWSER="$SCRIPT_PATH/WebKitBuild/Release/bin/MiniBrowser"
else
echo "Cannot find a MiniBrowser.app in neither location" 1>&2
exit 1