Index: build/android/devil/android/device_utils_test.py |
diff --git a/build/android/devil/android/device_utils_test.py b/build/android/devil/android/device_utils_test.py |
index 387a8b1fc6666a93c76aa496dd0126ebefbd440c..99d3c83d2e50469750648b2a29626c2a3c218529 100755 |
--- a/build/android/devil/android/device_utils_test.py |
+++ b/build/android/devil/android/device_utils_test.py |
@@ -1606,8 +1606,8 @@ class DeviceUtilsReadFileTest(DeviceUtilsTest): |
(mock.call.devil.android.device_temp_file.DeviceTempFile(self.adb), |
MockTempFile('/sdcard/tmp/on.device')), |
self.call.device.RunShellCommand( |
- ['cp', '/this/big/file/can.be.read.with.su', |
- '/sdcard/tmp/on.device'], |
+ 'SRC=/this/big/file/can.be.read.with.su DEST=/sdcard/tmp/on.device;' |
+ 'cp "$SRC" "$DEST" && chmod 666 "$DEST"', |
as_root=True, check_return=True), |
(self.call.device._ReadFileWithPull('/sdcard/tmp/on.device'), |
contents)): |