From 4b07f67b9687e8690e46a6d004ba4c35d697c31f Mon Sep 17 00:00:00 2001 From: Violet Caulfield <42452695+anultravioletaurora@users.noreply.github.com> Date: Tue, 18 Nov 2025 22:22:02 -0600 Subject: [PATCH] Simplify retry logic in maestro-android-retry.sh thankyoupikachu --- scripts/maestro-android-retry.sh | 34 +------------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/scripts/maestro-android-retry.sh b/scripts/maestro-android-retry.sh index 0ff098b9..099263be 100755 --- a/scripts/maestro-android-retry.sh +++ b/scripts/maestro-android-retry.sh @@ -11,36 +11,4 @@ fi JELLYFIN_URL="$1" USERNAME="$2" - -attempt=1 -max_attempts=3 -success=false - -while [ $attempt -le $max_attempts ]; do - echo "Attempt $attempt of $max_attempts..." - - if node scripts/maestro-android.js "$JELLYFIN_URL" "$USERNAME"; then - echo "Tests passed on attempt $attempt" - success=true - break - else - echo "Tests failed on attempt $attempt" - - if [ $attempt -lt $max_attempts ]; then - echo "Cleaning up and retrying..." - rm -rf *.mp4 || true - pkill -f maestro || true - sleep 5 - fi - - attempt=$((attempt + 1)) - fi -done - -if [ "$success" = false ]; then - echo "All $max_attempts attempts failed" - exit 1 -fi - -echo "Tests completed successfully!" - +node scripts/maestro-android.js "$JELLYFIN_URL" "$USERNAME"