Unverified Commit 08823595 authored by jcollins-g's avatar jcollins-g Committed by GitHub

Fix devicelab tests broken by #14173 (#14420)

parent 759dae83
......@@ -21,7 +21,7 @@ Future<Null> main() async {
await flutter('packages', options: <String>['get']);
await flutter('clean');
await flutter('build', options: <String>['apk', '--target', 'test/live_smoketest.dart']);
final String androidStudioPath = grep('Android Studio at', from: await evalFlutter('doctor')).first.split(' ').last;
final String androidStudioPath = grep('Android Studio at', from: await evalFlutter('doctor', options: <String>['-v'])).first.split(' ').last;
await exec('./tool/run_instrumentation_test.sh', <String>[], environment: <String, String>{
'JAVA_HOME': '$androidStudioPath/jre',
});
......
......@@ -14,7 +14,7 @@ String javaHome;
void main() {
task(() async {
section('Running flutter doctor to get JAVA_HOME');
final String flutterDoctor = await evalFlutter('doctor');
final String flutterDoctor = await evalFlutter('doctor', options: <String>['-v']);
final RegExp javaHomeExtractor = new RegExp(r'Android Studio at (.*)');
javaHome = javaHomeExtractor.firstMatch(flutterDoctor).group(1) + '/jre';
......
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