From 0bce77cc69508a5f966d565e2c5f9c8e37987864 Mon Sep 17 00:00:00 2001 From: Bryan Oltman Date: Fri, 26 Apr 2024 11:17:20 -0400 Subject: [PATCH] test: attempt fix readline for patch e2e test --- scripts/patch_e2e.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/patch_e2e.sh b/scripts/patch_e2e.sh index 198aeede..4891cc24 100755 --- a/scripts/patch_e2e.sh +++ b/scripts/patch_e2e.sh @@ -37,7 +37,7 @@ APP_ID=$(cat shorebird.yaml | grep 'app_id:' | awk '{print $2}') shorebird release android -v # Run the app on Android and ensure that the print statement is printed. -while IFS= read -r line; do +while IFS= read line; do if [[ "$line" == *"I flutter : hello world"* ]]; then adb kill-server echo "✅ 'hello world' was printed" @@ -52,7 +52,7 @@ sed -i 's/hello world/hello shorebird/g' lib/main.dart shorebird patch android -v # Run the app on Android and ensure that the original print statement is printed. -while IFS= read -r line; do +while IFS= read line; do if [[ "$line" == *"I flutter : hello world"* ]]; then sleep 5 # Wait for the patch to be installed. adb kill-server @@ -62,7 +62,7 @@ while IFS= read -r line; do done < <(shorebird preview --release-version 0.1.0+1 --app-id $APP_ID --platform android) # Re-run the app on Android and ensure that the new print statement is printed. -while IFS= read -r line; do +while IFS= read line; do if [[ "$line" == *"I flutter : hello shorebird"* ]]; then adb kill-server echo "✅ 'hello shorebird' was printed"