Give an explicit path to the flutter tool. (#10235)
Maybe this will make the test work in the device lab...
diff --git a/dev/devicelab/bin/tasks/dartdocs.dart b/dev/devicelab/bin/tasks/dartdocs.dart
index de99aa8..2beee95 100644
--- a/dev/devicelab/bin/tasks/dartdocs.dart
+++ b/dev/devicelab/bin/tasks/dartdocs.dart
@@ -8,12 +8,13 @@
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,
);