Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
832c0f1f
Commit
832c0f1f
authored
Jul 12, 2017
by
Yegor
Committed by
GitHub
Jul 12, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unlock device and pass JAVA_HOME to instrumentation test (#11174)
parent
be9f99a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
flutter_gallery_instrumentation_test.dart
...celab/bin/tasks/flutter_gallery_instrumentation_test.dart
+8
-2
No files found.
dev/devicelab/bin/tasks/flutter_gallery_instrumentation_test.dart
View file @
832c0f1f
...
...
@@ -16,9 +16,15 @@ Future<Null> main() async {
final
Directory
galleryDirectory
=
dir
(
'
${flutterDirectory.path}
/examples/flutter_gallery'
);
await
inDirectory
(
galleryDirectory
,
()
async
{
final
Device
device
=
await
devices
.
workingDevice
;
await
device
.
unlock
();
await
flutter
(
'packages'
,
options:
<
String
>[
'get'
]);
await
flutter
(
'build'
,
options:
<
String
>[
'clean'
]);
// to reset the Dart entry point
await
exec
(
'tool/run_instrumentation_test.sh'
,
<
String
>[]);
await
flutter
(
'build'
,
options:
<
String
>[
'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
;
await
exec
(
'./tool/run_instrumentation_test.sh'
,
<
String
>[],
environment:
<
String
,
String
>{
'JAVA_HOME'
:
'
$androidStudioPath
/jre'
,
});
});
return
new
TaskResult
.
success
(
null
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment