Commit 95eac98f authored by Eric Seidel's avatar Eric Seidel

Merge pull request #681 from eseidelGoogle/trace

Make trace --stop fail if the adb pull fails.
parents 853c42fc 5b2cc1ae
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment