File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
packages/flutter_tools/test/integration.shard Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -91,11 +91,14 @@ void main() {
91
91
}
92
92
93
93
// Clean
94
- processManager.runSync (< String > [
94
+ result = processManager.runSync (< String > [
95
95
flutterBin,
96
96
...getLocalEngineArguments (),
97
97
'clean' ,
98
98
], workingDirectory: exampleAppDir.path);
99
+ if (result.exitCode != 0 ) {
100
+ throw Exception ('flutter clean failed: ${result .exitCode }\n ${result .stderr }\n ${result .stdout }' );
101
+ }
99
102
100
103
// Remove Gradle wrapper
101
104
fileSystem
@@ -115,13 +118,16 @@ android.enableJetifier=true
115
118
android.enableR8=true''' );
116
119
117
120
// Run flutter build apk using AGP 3.3.0
118
- processManager.runSync (< String > [
121
+ result = processManager.runSync (< String > [
119
122
flutterBin,
120
123
...getLocalEngineArguments (),
121
124
'build' ,
122
125
'apk' ,
123
126
'--target-platform=android-arm' ,
124
127
], workingDirectory: exampleAppDir.path);
128
+ if (result.exitCode != 0 ) {
129
+ throw Exception ('flutter build failed: ${result .exitCode }\n ${result .stderr }\n ${result .stdout }' );
130
+ }
125
131
expect (exampleApk, exists);
126
132
}
127
133
You can’t perform that action at this time.
0 commit comments