Merge pull request #681 from eseidelGoogle/trace

Make trace --stop fail if the adb pull fails.
This commit is contained in:
Eric Seidel 2015-12-02 12:00:01 -08:00
commit 95eac98fac

View File

@ -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);
}