Unverified Commit 558c753f authored by Mikkel Nygaard Ravn's avatar Mikkel Nygaard Ravn Committed by GitHub

Fix test failure by silencing analyzer preamble and congrats (#14745)

parent 52abda66
...@@ -15,7 +15,7 @@ Future<Null> main() async { ...@@ -15,7 +15,7 @@ Future<Null> main() async {
final Stopwatch clock = new Stopwatch()..start(); final Stopwatch clock = new Stopwatch()..start();
final Process analysis = await startProcess( final Process analysis = await startProcess(
path.join(flutterDirectory.path, 'bin', 'flutter'), path.join(flutterDirectory.path, 'bin', 'flutter'),
<String>['analyze', '--flutter-repo', '--dartdocs'], <String>['analyze', '--no-preamble', '--no-congratulate', '--flutter-repo', '--dartdocs'],
workingDirectory: flutterDirectory.path, workingDirectory: flutterDirectory.path,
); );
int publicMembers = 0; int publicMembers = 0;
...@@ -37,10 +37,6 @@ Future<Null> main() async { ...@@ -37,10 +37,6 @@ Future<Null> main() async {
print('analyzer stdout: $entry'); print('analyzer stdout: $entry');
if (entry == 'Building flutter tool...') { if (entry == 'Building flutter tool...') {
// ignore this line // ignore this line
} else if (entry.startsWith('Analyzing ')) {
// ignore this line
} else if (entry.startsWith('No analyzer warnings!')) {
// ignore this line
} else { } else {
otherLines += 1; otherLines += 1;
} }
......
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