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 d6d6431910925f4ba0aa4186d869f60c83cad535..5eb0525e42d7c2e81b7b6975726a28e5c6ef849c 100755 |
--- a/build/android/devil/android/device_utils_test.py |
+++ b/build/android/devil/android/device_utils_test.py |
@@ -857,7 +857,7 @@ class DeviceUtilsRunShellCommandTest(DeviceUtilsTest): |
def testRunShellCommand_largeOutput_enabled(self): |
cmd = 'echo $VALUE' |
temp_file = MockTempFile('/sdcard/temp-123') |
- cmd_redirect = '%s > %s' % (cmd, temp_file.name) |
+ cmd_redirect = '( %s )>%s' % (cmd, temp_file.name) |
with self.assertCalls( |
(mock.call.devil.android.device_temp_file.DeviceTempFile(self.adb), |
temp_file), |
@@ -878,7 +878,7 @@ class DeviceUtilsRunShellCommandTest(DeviceUtilsTest): |
def testRunShellCommand_largeOutput_disabledTrigger(self): |
cmd = 'echo $VALUE' |
temp_file = MockTempFile('/sdcard/temp-123') |
- cmd_redirect = '%s > %s' % (cmd, temp_file.name) |
+ cmd_redirect = '( %s )>%s' % (cmd, temp_file.name) |
with self.assertCalls( |
(self.call.adb.Shell(cmd), self.ShellError('', None)), |
(mock.call.devil.android.device_temp_file.DeviceTempFile(self.adb), |