Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(470)

Unified Diff: telemetry/telemetry/internal/platform/profiler/android_prebuilt_profiler_helper.py

Issue 2709523005: [Telemetry] Switch RunShellCommand clients to check_return=True (Closed)
Patch Set: revert change in chown command Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: telemetry/telemetry/internal/platform/profiler/android_prebuilt_profiler_helper.py
diff --git a/telemetry/telemetry/internal/platform/profiler/android_prebuilt_profiler_helper.py b/telemetry/telemetry/internal/platform/profiler/android_prebuilt_profiler_helper.py
index 83adc5980c442c1db81e6fe8e70b542b976d4a01..77e23141a2b920bbe1b34807bd80616553556900 100644
--- a/telemetry/telemetry/internal/platform/profiler/android_prebuilt_profiler_helper.py
+++ b/telemetry/telemetry/internal/platform/profiler/android_prebuilt_profiler_helper.py
@@ -28,5 +28,6 @@ def InstallOnDevice(device, profiler_binary):
device_binary_path = GetDevicePath(profiler_binary)
device.PushChangedFiles([(host_path, device_binary_path)])
- device.RunShellCommand('chmod 777 ' + device_binary_path)
+ device.RunShellCommand(
+ ['chmod', '777', device_binary_path], check_return=True)
return True

Powered by Google App Engine
This is Rietveld 408576698