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.
This commit is contained in:
Niko Catania
2009-04-09 16:50:54 -07:00
parent c3e4be85ab
commit fa14bd5728

View File

@@ -299,8 +299,8 @@ class TestRunner(object):
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"))