Skip to content

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

fix(devops): cleanup now removes entire webkit build dir on mac (#5996)

Yury Semikhatsky9473f39b0b27
diff --git a/browser_patches/webkit/clean.sh b/browser_patches/webkit/clean.sh
index 4230691a0f..e07f6ed152 100755
--- a/browser_patches/webkit/clean.sh
+++ b/browser_patches/webkit/clean.sh
@@ -12,12 +12,16 @@ else
cd "checkout"
fi
-if [[ -d ./WebKitBuild ]]; then
- rm -rf ./WebKitBuild/Release
-fi
-if [[ -d ./WebKitBuild/GTK ]]; then
- rm -rf ./WebKitBuild/GTK/Release
-fi
-if [[ -d ./WebKitBuild/WPE ]]; then
- rm -rf ./WebKitBuild/WPE/Release
-fi
+if [[ "$(uname)" == "Darwin" ]]; then
+ rm -rf ./WebKitBuild
+else
+ if [[ -d ./WebKitBuild ]]; then
+ rm -rf ./WebKitBuild/Release
+ fi
+ if [[ -d ./WebKitBuild/GTK ]]; then
+ rm -rf ./WebKitBuild/GTK/Release
+ fi
+ if [[ -d ./WebKitBuild/WPE ]]; then
+ rm -rf ./WebKitBuild/WPE/Release
+ fi
+fi
\ No newline at end of file