am 17441d87: am 5f509c78: am da60a30b: Merge "Add a test for shell escaping."
* commit '17441d879dc70346eb378e58101600ec3f480165': Add a test for shell escaping.
This commit is contained in:
commit
fa7e76f1b5
|
@ -267,6 +267,14 @@ class AdbBasic(unittest.TestCase):
|
|||
adb.unroot()
|
||||
adb.wait()
|
||||
|
||||
def test_argument_escaping(self):
|
||||
"""Make sure that argument escaping is somewhat sane."""
|
||||
adb = AdbWrapper()
|
||||
|
||||
# http://b/19734868
|
||||
result = adb.shell("sh -c 'echo hello; echo world'").splitlines()
|
||||
self.assertEqual(["hello", "world"], result)
|
||||
|
||||
|
||||
class AdbFile(unittest.TestCase):
|
||||
SCRATCH_DIR = "/data/local/tmp"
|
||||
|
|
Loading…
Reference in New Issue