summaryrefslogtreecommitdiffstats
path: root/adb
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-04-21 23:35:06 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-04-21 23:35:06 +0000
commit9a0cea92c8b74114b70ac3339b2b611633f6a31a (patch)
tree00f08981a30d69bbaa523fabac0baa7b71f25591 /adb
parenta75b3de2c235d6adcee0aadcc9ecc718fd784c05 (diff)
parent8e6edc0d89f370fbc1760139849cf36d3ac4d589 (diff)
downloadsystem_core-9a0cea92c8b74114b70ac3339b2b611633f6a31a.zip
system_core-9a0cea92c8b74114b70ac3339b2b611633f6a31a.tar.gz
system_core-9a0cea92c8b74114b70ac3339b2b611633f6a31a.tar.bz2
Merge "Add a couple more adb shell regression tests."
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"