Commit 5b2cc1ae authored by Eric Seidel's avatar Eric Seidel

Make trace --stop fail if the adb pull fails.

@chinmaygarde
parent abf3f1bb
......@@ -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