Give an explicit path to the flutter tool. (#10235)

Maybe this will make the test work in the device lab...
This commit is contained in:
Ian Hickson 2017-05-22 10:00:59 -07:00 committed by GitHub
parent fbc5f74cad
commit d94ae089c7

View file

@ -8,12 +8,13 @@ import 'dart:io';
import 'package:flutter_devicelab/framework/framework.dart';
import 'package:flutter_devicelab/framework/utils.dart';
import 'package:path/path.dart' as path;
Future<Null> main() async {
await task(() async {
final Stopwatch clock = new Stopwatch()..start();
final Process analysis = await startProcess(
'flutter',
path.join(flutterDirectory.path, 'bin', 'flutter'),
<String>['analyze', '--flutter-repo', '--dartdocs'],
workingDirectory: flutterDirectory.path,
);