test: add test logging to e2e patch command

This commit is contained in:
Bryan Oltman
2024-04-26 11:45:53 -04:00
parent 9aa940e43e
commit f4e2980326
+14
View File
@@ -24,6 +24,17 @@ cd e2e_test
# Replace the contents of "lib/main.dart" with a single print statement.
echo "void main() { print('hello world'); }" >lib/main.dart
echo "testing sed command"
# Replace lib/main.dart "hello world" to "hello shorebird"
sed -i 's/hello world/hello shorebird/g' lib/main.dart
echo "lib/main.dart is now:"
cat lib/main.dart
# Replace the contents of "lib/main.dart" with a single print statement.
echo "void main() { print('hello world'); }" >lib/main.dart
# Initialize Shorebird
shorebird init --force -v
@@ -48,6 +59,9 @@ done < <(shorebird preview --release-version 0.1.0+1 --app-id $APP_ID --platform
# Replace lib/main.dart "hello world" to "hello shorebird"
sed -i 's/hello world/hello shorebird/g' lib/main.dart
echo "lib/main.dart is now:"
cat lib/main.dart
# Create a patch
shorebird patch android -v