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

Unified Diff: build/android/devil/android/device_utils_test.py

Issue 1335983002: DeviceUtils: Fix SU command for pre-M devices Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « build/android/devil/android/device_utils.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6276ff2b138613a55a9f15e34615d90d393bebff..883815e9ce9ed1436e36e561830766bea83f0f98 100755
--- a/build/android/devil/android/device_utils_test.py
+++ b/build/android/devil/android/device_utils_test.py
@@ -697,13 +697,13 @@ class DeviceUtilsSuTest(DeviceUtilsTest):
with self.patch_call(
self.call.device.build_version_sdk,
return_value=version_codes.LOLLIPOP_MR1):
- self.assertEquals('su -c foo', self.device._Su('foo'))
+ self.assertEquals("su -c 'foo bar'", self.device._Su('foo bar'))
def testSu_mAndAbove(self):
with self.patch_call(
self.call.device.build_version_sdk,
return_value=version_codes.MARSHMALLOW):
- self.assertEquals('su 0 foo', self.device._Su('foo'))
+ self.assertEquals('su 0 foo bar', self.device._Su('foo bar'))
class DeviceUtilsRunShellCommandTest(DeviceUtilsTest):
« no previous file with comments | « build/android/devil/android/device_utils.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698