mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fail test execution if compiler reported errors. (#16895)
Fixes https://github.com/flutter/flutter/issues/16496
This commit is contained in:
parent
de8a53c55b
commit
b1330eff5f
@ -151,11 +151,11 @@ class _Compiler {
|
||||
request.path);
|
||||
final String outputPath = compilerOutput?.outputFilename;
|
||||
|
||||
// Check if the compiler produced the output. If it failed then
|
||||
// outputPath would be null. In this case pass null upwards to the
|
||||
// consumer and shutdown the compiler to avoid reusing compiler
|
||||
// that might have gotten into a weird state.
|
||||
if (outputPath == null) {
|
||||
// In case compiler didn't produce output or reported compilation
|
||||
// errors, pass [null] upwards to the consumer and shutdown the
|
||||
// compiler to avoid reusing compiler that might have gotten into
|
||||
// a weird state.
|
||||
if (outputPath == null || compilerOutput.errorCount > 0) {
|
||||
request.result.complete(null);
|
||||
await shutdown();
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user