Index: build/android/pylib/instrumentation/test_runner.py |
diff --git a/build/android/pylib/instrumentation/test_runner.py b/build/android/pylib/instrumentation/test_runner.py |
index 821fec1f2a8c28e2d69d8621838149b904808c5b..0e6c168449d122f348663878aa6267401041d73c 100644 |
--- a/build/android/pylib/instrumentation/test_runner.py |
+++ b/build/android/pylib/instrumentation/test_runner.py |
@@ -358,8 +358,8 @@ |
cmd = ['am', 'instrument', '-r'] |
for k, v in self._GetInstrumentationArgs().iteritems(): |
- cmd.extend(['-e', k, v]) |
- cmd.extend(['-e', 'class', test]) |
+ cmd.extend(['-e', k, "'%s'" % v]) |
+ cmd.extend(['-e', 'class', "'%s'" % test]) |
cmd.extend(['-w', instrumentation_path]) |
return self.device.RunShellCommand(cmd, timeout=timeout, retries=0) |