Skip to content

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

chore(scripts): ignore untracked files and print custom checkout path in logs (#117)

Yury Semikhatsky8cf8eec3a010
diff --git a/browser_patches/prepare_checkout.sh b/browser_patches/prepare_checkout.sh
index 79cdfcba5e..b8f1114b44 100755
--- a/browser_patches/prepare_checkout.sh
+++ b/browser_patches/prepare_checkout.sh
@@ -49,7 +49,7 @@ fi
if [[ $# == 2 ]]; then
echo "WARNING: using custom checkout path $CHECKOUT_PATH"
CHECKOUT_PATH=$2
- FRIENDLY_CHECKOUT_PATH="<custom_checkout>"
+ FRIENDLY_CHECKOUT_PATH="<custom_checkout('$2')>"
fi
# if there's no checkout folder - checkout one.
@@ -72,7 +72,7 @@ fi
cd $CHECKOUT_PATH
# Bail out if git repo is dirty.
-if [[ -n $(git status -s) ]]; then
+if [[ -n $(git status -s --untracked-files=no) ]]; then
echo "ERROR: $FRIENDLY_CHECKOUT_PATH has dirty GIT state - commit everything and re-run the script."
exit 1
fi