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
7ec50ddd
Unverified
Commit
7ec50ddd
authored
Apr 29, 2020
by
Jonah Williams
Committed by
GitHub
Apr 29, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[devicelab] Explicitly print stack trace from error in android attach test (#55981)
parent
534b0608
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
flutter_attach_test_android.dart
dev/devicelab/bin/tasks/flutter_attach_test_android.dart
+8
-1
No files found.
dev/devicelab/bin/tasks/flutter_attach_test_android.dart
View file @
7ec50ddd
...
...
@@ -57,7 +57,9 @@ Future<void> testReload(Process process, { Future<void> Function() onListening }
event
,
process
.
exitCode
,
// Keep the test from running for 15 minutes if it gets stuck.
Future
<
void
>.
delayed
(
const
Duration
(
seconds:
10
)),
Future
<
void
>.
delayed
(
const
Duration
(
seconds:
10
)).
then
<
void
>((
void
_
)
{
throw
StateError
(
'eventOrExit timed out'
);
}),
]);
}
...
...
@@ -71,10 +73,12 @@ Future<void> testReload(Process process, { Future<void> Function() onListening }
print
(
'run:stdin: r'
);
await
process
.
stdin
.
flush
();
await
eventOrExit
(
reloaded
.
future
);
process
.
stdin
.
write
(
'R'
);
print
(
'run:stdin: R'
);
await
process
.
stdin
.
flush
();
await
eventOrExit
(
restarted
.
future
);
process
.
stdin
.
write
(
'q'
);
print
(
'run:stdin: q'
);
await
process
.
stdin
.
flush
();
...
...
@@ -168,6 +172,9 @@ void main() {
);
// Verify that it can discover the observatory port from past logs.
await
testReload
(
attachProcess
);
}
catch
(
err
,
st
)
{
print
(
'Uncaught exception:
$err
\n
$st
'
);
rethrow
;
}
finally
{
section
(
'Uninstalling'
);
await
device
.
adb
(<
String
>[
'uninstall'
,
kAppId
]);
...
...
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