Unverified Commit 3cbe0ff1 authored by Jenn Magder's avatar Jenn Magder Committed by GitHub

Output unexpected Podfile.lock contents on test failure (#76223)

parent 74b6ce9a
...@@ -181,6 +181,7 @@ Future<void> main() async { ...@@ -181,6 +181,7 @@ Future<void> main() async {
|| !podfileLockOutput.contains(':path: ".symlinks/plugins/device_info/ios"') || !podfileLockOutput.contains(':path: ".symlinks/plugins/device_info/ios"')
|| !podfileLockOutput.contains(':path: ".symlinks/plugins/google_sign_in/ios"') || !podfileLockOutput.contains(':path: ".symlinks/plugins/google_sign_in/ios"')
|| podfileLockOutput.contains('android_alarm_manager')) { || podfileLockOutput.contains('android_alarm_manager')) {
print(podfileLockOutput);
return TaskResult.failure('Building ephemeral host app Podfile.lock does not contain expected pods'); return TaskResult.failure('Building ephemeral host app Podfile.lock does not contain expected pods');
} }
...@@ -229,6 +230,7 @@ Future<void> main() async { ...@@ -229,6 +230,7 @@ Future<void> main() async {
|| !hostPodfileLockOutput.contains(':path: "../hello/.ios/.symlinks/plugins/device_info/ios"') || !hostPodfileLockOutput.contains(':path: "../hello/.ios/.symlinks/plugins/device_info/ios"')
|| !hostPodfileLockOutput.contains(':path: "../hello/.ios/.symlinks/plugins/google_sign_in/ios"') || !hostPodfileLockOutput.contains(':path: "../hello/.ios/.symlinks/plugins/google_sign_in/ios"')
|| hostPodfileLockOutput.contains('android_alarm_manager')) { || hostPodfileLockOutput.contains('android_alarm_manager')) {
print(hostPodfileLockOutput);
throw TaskResult.failure('Building host app Podfile.lock does not contain expected pods'); throw TaskResult.failure('Building host app Podfile.lock does not contain expected pods');
} }
......
...@@ -368,6 +368,7 @@ Future<void> main() async { ...@@ -368,6 +368,7 @@ Future<void> main() async {
// test_plugin_objc no longer supports iOS, shouldn't be present. // test_plugin_objc no longer supports iOS, shouldn't be present.
|| podfileLockOutput.contains(':path: ".symlinks/plugins/test_plugin_objc/ios"') || podfileLockOutput.contains(':path: ".symlinks/plugins/test_plugin_objc/ios"')
|| !podfileLockOutput.contains(':path: ".symlinks/plugins/test_plugin_swift/ios"')) { || !podfileLockOutput.contains(':path: ".symlinks/plugins/test_plugin_swift/ios"')) {
print(podfileLockOutput);
return TaskResult.failure('Podfile.lock does not contain expected pods'); return TaskResult.failure('Podfile.lock does not contain expected pods');
} }
...@@ -415,6 +416,7 @@ void _validateIosPodfile(String appPath) { ...@@ -415,6 +416,7 @@ void _validateIosPodfile(String appPath) {
|| !podfileLockOutput.contains(':path: ".symlinks/plugins/test_plugin_objc/ios"') || !podfileLockOutput.contains(':path: ".symlinks/plugins/test_plugin_objc/ios"')
|| !podfileLockOutput.contains(':path: ".symlinks/plugins/test_plugin_swift/ios"') || !podfileLockOutput.contains(':path: ".symlinks/plugins/test_plugin_swift/ios"')
|| podfileLockOutput.contains('url_launcher_macos')) { || podfileLockOutput.contains('url_launcher_macos')) {
print(podfileLockOutput);
throw TaskResult.failure('iOS Podfile.lock does not contain expected pods'); throw TaskResult.failure('iOS Podfile.lock does not contain expected pods');
} }
...@@ -472,6 +474,7 @@ void _validateMacOSPodfile(String appPath) { ...@@ -472,6 +474,7 @@ void _validateMacOSPodfile(String appPath) {
|| !podfileLockOutput.contains(':path: Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos') || !podfileLockOutput.contains(':path: Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos')
|| !podfileLockOutput.contains(':path: Flutter/ephemeral/.symlinks/plugins/test_plugin_swift/macos') || !podfileLockOutput.contains(':path: Flutter/ephemeral/.symlinks/plugins/test_plugin_swift/macos')
|| podfileLockOutput.contains('url_launcher/')) { || podfileLockOutput.contains('url_launcher/')) {
print(podfileLockOutput);
throw TaskResult.failure('macOS Podfile.lock does not contain expected pods'); throw TaskResult.failure('macOS Podfile.lock does not contain expected pods');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment