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:
@@ -299,8 +299,8 @@ class TestRunner(object):
|
|||||||
for f in file_list:
|
for f in file_list:
|
||||||
full_path = "/system/bin/%s" % f
|
full_path = "/system/bin/%s" % f
|
||||||
|
|
||||||
# Run
|
# Single quotes are needed to prevent the shell splitting it.
|
||||||
status = self._adb.SendShellCommand("%s >/dev/null 2>&1;echo -n $?" %
|
status = self._adb.SendShellCommand("'%s >/dev/null 2>&1;echo -n $?'" %
|
||||||
full_path)
|
full_path)
|
||||||
logger.Log("%s... %s" % (f, status == "0" and "ok" or "failed"))
|
logger.Log("%s... %s" % (f, status == "0" and "ok" or "failed"))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user