Merge branch 'dart_1.19.0-dev.0.0' of github.com:pq/flutter into dart_1.19.0-dev.0.0

This commit is contained in:
pq
2016-07-27 10:45:11 -07:00

View File

@@ -47,7 +47,8 @@ class TestCommand extends FlutterCommand {
@override
bool get requiresProjectRoot => false;
Validator projectRootValidator = () {
@override
Validator commandValidator = () {
if (!FileSystemEntity.isFileSync('pubspec.yaml')) {
printError(
'Error: No pubspec.yaml file found in the current working directory.\n'
@@ -149,7 +150,7 @@ class TestCommand extends FlutterCommand {
Future<int> runInProject() async {
List<String> testArgs = argResults.rest.map((String testPath) => path.absolute(testPath)).toList();
if (!projectRootValidator())
if (!commandValidator())
return 1;
Directory testDir;