Use relative path for flutter. (#55485)

This commit is contained in:
Tianguang
2020-04-23 22:29:02 +02:00
committed by GitHub
parent 9f92ec2651
commit f582246af6

View File

@@ -6,6 +6,8 @@ import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'package:path/path.dart' as path;
import 'package:flutter_devicelab/framework/framework.dart';
import 'package:flutter_devicelab/framework/utils.dart';
@@ -51,7 +53,7 @@ class NewGalleryChromeRunTest {
final List<String> options = <String>['-d', 'chrome', '--verbose', '--resident'];
final Process process = await startProcess(
'flutter',
path.join(flutterDirectory.path, 'bin', 'flutter'),
flutterCommandArgs('run', options),
environment: <String, String>{
'FLUTTER_WEB': 'true',