Commit 72de7025 authored by pq's avatar pq

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

parents 13c3f9d9 4bbf72a0
......@@ -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;
......
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