summaryrefslogtreecommitdiffstats
path: root/adb
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-04-21 16:25:54 -0700
committerElliott Hughes <enh@google.com>2015-04-21 16:25:54 -0700
commit8e6edc0d89f370fbc1760139849cf36d3ac4d589 (patch)
treef252d66de14775beee1d7ada3df1ab89f7109b92 /adb
parent088c4f3b8a0933fd6b3262764b54f4751155c7d1 (diff)
downloadsystem_core-8e6edc0d89f370fbc1760139849cf36d3ac4d589.zip
system_core-8e6edc0d89f370fbc1760139849cf36d3ac4d589.tar.gz
system_core-8e6edc0d89f370fbc1760139849cf36d3ac4d589.tar.bz2
Add a couple more adb shell regression tests.
Bug: http://b/15479704 Change-Id: Id3e7f0df101ad61db509df313c13210a8bd8b124
Diffstat (limited to 'adb')
-rwxr-xr-xadb/tests/test_adb.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/adb/tests/test_adb.py b/adb/tests/test_adb.py
index 69dead2..52d8056 100755
--- a/adb/tests/test_adb.py
+++ b/adb/tests/test_adb.py
@@ -275,6 +275,10 @@ class AdbBasic(unittest.TestCase):
result = adb.shell("sh -c 'echo hello; echo world'").splitlines()
self.assertEqual(["hello", "world"], result)
+ # http://b/15479704
+ self.assertEqual('t', adb.shell("'true && echo t'").strip())
+ self.assertEqual('t', adb.shell("sh -c 'true && echo t'").strip())
+
class AdbFile(unittest.TestCase):
SCRATCH_DIR = "/data/local/tmp"