parent
759dae835f
commit
08823595b0
@ -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';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user