Make trace --stop fail if the adb pull fails.
@chinmaygarde
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user