From fa14bd57282fb6b31d40fdd91465cd460a15fd3c Mon Sep 17 00:00:00 2001 From: Niko Catania Date: Thu, 9 Apr 2009 16:50:54 -0700 Subject: [PATCH] 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. --- testrunner/runtest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testrunner/runtest.py b/testrunner/runtest.py index ff945dc31..6d6c6df41 100755 --- a/testrunner/runtest.py +++ b/testrunner/runtest.py @@ -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"))