Unverified Commit b1330eff authored by Alexander Aprelev's avatar Alexander Aprelev Committed by GitHub

Fail test execution if compiler reported errors. (#16895)

Fixes https://github.com/flutter/flutter/issues/16496
parent de8a53c5
......@@ -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 {
......
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