From 3cbe0ff1b197ba31a83362e13657c0d67975e389 Mon Sep 17 00:00:00 2001 From: Jenn Magder Date: Wed, 17 Feb 2021 12:56:03 -0800 Subject: [PATCH] Output unexpected Podfile.lock contents on test failure (#76223) --- dev/devicelab/bin/tasks/module_test_ios.dart | 2 ++ dev/devicelab/bin/tasks/plugin_lint_mac.dart | 3 +++ 2 files changed, 5 insertions(+) diff --git a/dev/devicelab/bin/tasks/module_test_ios.dart b/dev/devicelab/bin/tasks/module_test_ios.dart index c1e8b3366b..8a2690c19c 100644 --- a/dev/devicelab/bin/tasks/module_test_ios.dart +++ b/dev/devicelab/bin/tasks/module_test_ios.dart @@ -181,6 +181,7 @@ Future main() async { || !podfileLockOutput.contains(':path: ".symlinks/plugins/device_info/ios"') || !podfileLockOutput.contains(':path: ".symlinks/plugins/google_sign_in/ios"') || podfileLockOutput.contains('android_alarm_manager')) { + print(podfileLockOutput); return TaskResult.failure('Building ephemeral host app Podfile.lock does not contain expected pods'); } @@ -229,6 +230,7 @@ Future main() async { || !hostPodfileLockOutput.contains(':path: "../hello/.ios/.symlinks/plugins/device_info/ios"') || !hostPodfileLockOutput.contains(':path: "../hello/.ios/.symlinks/plugins/google_sign_in/ios"') || hostPodfileLockOutput.contains('android_alarm_manager')) { + print(hostPodfileLockOutput); throw TaskResult.failure('Building host app Podfile.lock does not contain expected pods'); } diff --git a/dev/devicelab/bin/tasks/plugin_lint_mac.dart b/dev/devicelab/bin/tasks/plugin_lint_mac.dart index 45c8429dba..ff4654489f 100644 --- a/dev/devicelab/bin/tasks/plugin_lint_mac.dart +++ b/dev/devicelab/bin/tasks/plugin_lint_mac.dart @@ -368,6 +368,7 @@ Future main() async { // 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_swift/ios"')) { + print(podfileLockOutput); return TaskResult.failure('Podfile.lock does not contain expected pods'); } @@ -415,6 +416,7 @@ void _validateIosPodfile(String appPath) { || !podfileLockOutput.contains(':path: ".symlinks/plugins/test_plugin_objc/ios"') || !podfileLockOutput.contains(':path: ".symlinks/plugins/test_plugin_swift/ios"') || podfileLockOutput.contains('url_launcher_macos')) { + print(podfileLockOutput); throw TaskResult.failure('iOS Podfile.lock does not contain expected pods'); } @@ -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/test_plugin_swift/macos') || podfileLockOutput.contains('url_launcher/')) { + print(podfileLockOutput); throw TaskResult.failure('macOS Podfile.lock does not contain expected pods'); }