mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Merge pull request #681 from eseidelGoogle/trace
Make trace --stop fail if the adb pull fails.
This commit is contained in:
commit
95eac98fac
@ -875,8 +875,9 @@ class AndroidDevice extends Device {
|
||||
}
|
||||
|
||||
if (tracePath != null) {
|
||||
runCheckedSync(adbCommandForDevice(['root']));
|
||||
runSync(adbCommandForDevice(['shell', 'run-as', apk.id, 'chmod', '777', tracePath]));
|
||||
runSync(adbCommandForDevice(['pull', tracePath]));
|
||||
runCheckedSync(adbCommandForDevice(['pull', tracePath]));
|
||||
runSync(adbCommandForDevice(['shell', 'rm', tracePath]));
|
||||
return path.basename(tracePath);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user