From ef3378ba8385520c0dc75013162ea79196d6d4f5 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sat, 22 Jun 2024 14:33:55 +0200 Subject: wait for cache to be mounted first --- run-test.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/run-test.sh b/run-test.sh index 9fdf259..c982c4c 100755 --- a/run-test.sh +++ b/run-test.sh @@ -2,6 +2,11 @@ cd "$(dirname "$(readlink -e "$0")")" +for i in {1..300}; do + [ -d ~erich/.cache/ms-playwright/ ] && break + sleep 1 +done + if ! cnt=$(su erich -c "npx playwright test"); then printf '%s\n' \ 'To: erich@eckner.net' \ -- cgit v1.2.3-70-g09d2