update build benchmark to match #7589 (#7600)

This commit is contained in:
Yegor
2017-01-23 17:49:01 -08:00
committed by GitHub
parent a6777b2a60
commit 4bec9cd940
3 changed files with 35 additions and 22 deletions

View File

@@ -237,6 +237,14 @@ Future<int> flutter(String command,
canFail: canFail, env: env);
}
/// Runs a `flutter` command and returns the standard output as a string.
Future<String> evalFlutter(String command,
{List<String> options: const <String>[], bool canFail: false, Map<String, String> env}) {
List<String> args = <String>[command]..addAll(options);
return eval(path.join(flutterDirectory.path, 'bin', 'flutter'), args,
canFail: canFail, env: env);
}
String get dartBin =>
path.join(flutterDirectory.path, 'bin', 'cache', 'dart-sdk', 'bin', 'dart');