Skip to content

Commit 85aac37

Browse files
authored
Add more debugging info to android_plugin_example_app_build_test (#101685)
1 parent 77756d3 commit 85aac37

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

packages/flutter_tools/test/integration.shard/android_plugin_example_app_build_test.dart

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,14 @@ void main() {
9191
}
9292

9393
// Clean
94-
processManager.runSync(<String>[
94+
result = processManager.runSync(<String>[
9595
flutterBin,
9696
...getLocalEngineArguments(),
9797
'clean',
9898
], workingDirectory: exampleAppDir.path);
99+
if (result.exitCode != 0) {
100+
throw Exception('flutter clean failed: ${result.exitCode}\n${result.stderr}\n${result.stdout}');
101+
}
99102

100103
// Remove Gradle wrapper
101104
fileSystem
@@ -115,13 +118,16 @@ android.enableJetifier=true
115118
android.enableR8=true''');
116119

117120
// Run flutter build apk using AGP 3.3.0
118-
processManager.runSync(<String>[
121+
result = processManager.runSync(<String>[
119122
flutterBin,
120123
...getLocalEngineArguments(),
121124
'build',
122125
'apk',
123126
'--target-platform=android-arm',
124127
], workingDirectory: exampleAppDir.path);
128+
if (result.exitCode != 0) {
129+
throw Exception('flutter build failed: ${result.exitCode}\n${result.stderr}\n${result.stdout}');
130+
}
125131
expect(exampleApk, exists);
126132
}
127133

0 commit comments

Comments
 (0)