Skip to content

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

devops(chromium): account for terminated / interrupted jobs

Andrey Lushnikov01bddcd17101
diff --git a/browser_patches/chromium/build.sh b/browser_patches/chromium/build.sh
index eee03af1a4..e23366cf26 100755
--- a/browser_patches/chromium/build.sh
+++ b/browser_patches/chromium/build.sh
@@ -101,8 +101,9 @@ compile_chromium() {
# we don't fork Chromium.
#
# This is based on https://chromium.googlesource.com/chromium/src/+/master/docs/linux/build_instructions.md#get-the-code
- if [[ ! -d "${CR_CHECKOUT_PATH}" ]]; then
- mkdir "${CR_CHECKOUT_PATH}"
+ if [[ ! -d "${CR_CHECKOUT_PATH}/src" ]]; then
+ rm -rf "${CR_CHECKOUT_PATH}"
+ mkdir -p "${CR_CHECKOUT_PATH}"
cd "${CR_CHECKOUT_PATH}"
fetch --nohooks chromium
cd src