Added single quotes around the shell command sent to the device.
Without the quotes, the shell split the command and the echo statement
gets dropped.
diff --git a/testrunner/runtest.py b/testrunner/runtest.py
index ff945dc..6d6c6df 100755
--- a/testrunner/runtest.py
+++ b/testrunner/runtest.py
@@ -299,8 +299,8 @@
for f in file_list:
full_path = "/system/bin/%s" % f
- # Run
- status = self._adb.SendShellCommand("%s >/dev/null 2>&1;echo -n $?" %
+ # Single quotes are needed to prevent the shell splitting it.
+ status = self._adb.SendShellCommand("'%s >/dev/null 2>&1;echo -n $?'" %
full_path)
logger.Log("%s... %s" % (f, status == "0" and "ok" or "failed"))