commit | 87c2995a6d8edae2cf9609ae134e391de18db2e9 | [log] [tgz] |
---|---|---|
author | David Pursell <dpursell@google.com> | Mon Aug 10 12:52:16 2015 -0700 |
committer | David Pursell <dpursell@google.com> | Wed Aug 12 14:16:22 2015 -0700 |
tree | 556b1c69c94c8051ceab6a81b588f4deaa1257e2 | |
parent | 3b1a373b82a55a3affda0bb1a1f06419d4c42143 [diff] |
adb: Fix PTY logic for non-interactive shells. Change `adb shell` so that interactive sessions use a PTY but non-interactive do not. This matches `ssh` functionality better and also enables future work to split stdout/stderr for non-interactive sessions. A test to verify this behavior is added to test_device.py with supporting modifications in device.py. Bug: http://b/21215503 Change-Id: Ib4ba40df85f82ddef4e0dd557952271c859d1c7b