adb: add tests for -Tt shell arguments.

Adds python tests to check that -T (disable PTY) and -t (force PTY)
arguments work as expected for `adb shell`.

Bug: http://b/23825231
Change-Id: I5343fae35b2be8459a9b95125f66def46c26adf4
This commit is contained in:
David Pursell
2015-09-22 11:34:42 -07:00
parent b02c99f086
commit d89fcd4f76
2 changed files with 42 additions and 18 deletions

View File

@@ -156,7 +156,7 @@ class AndroidDevice(object):
# adb on Windows returns \r\n even if adbd returns \n.
_RETURN_CODE_SEARCH_LENGTH = len('{0}255\r\n'.format(_RETURN_CODE_DELIMITER))
# Shell protocol feature string.
# Feature name strings.
SHELL_PROTOCOL_FEATURE = 'shell_2'
def __init__(self, serial, product=None):