Commit Graph

11 Commits

Author SHA1 Message Date
Yabin Cui
0e54d10df7 adb: add test for forward/reverse commands.
Bug: 25355808
Change-Id: Idc636569b0699c2acc3bf674fdcfd25c74b83121
2015-11-02 12:21:52 -08:00
David Pursell
303d809adf Merge "adb: update adb PTY tests." 2015-10-27 15:39:32 +00:00
David Pursell
e0146c4335 adb: update adb PTY tests.
adb PTY behavior has been updated to match ssh more closely. This CL
updates the PTY tests accordingly.

Bug: http://b/24565284
Change-Id: I01208eac62c54eba1c2f97b334a18c4c19d77ea2
2015-10-26 10:12:08 -07:00
Elliott Hughes
a7aa6e2b1d Add a test for "adb pull" error reporting.
Bug: http://b/6205106
Change-Id: I2093c3d451361d48056b85c8017acb032a3ff478
2015-10-23 21:55:31 -07:00
Josh Gao
a80834e943 Merge "adb/test_device.py: fix finding md5 command on pre-L platforms" 2015-10-22 01:05:59 +00:00
Spencer Low
ebbc3fe2d0 adb/test_device.py: fix finding md5 command on pre-L platforms
606835ae5c4b9519009cdff8b1c33169cff32cb1 in platform/system/core made
adb.device.shell() throw adb.ShellError instead of
subprocess.CalledProcessError.

Change-Id: I7f579887a9aab8d11cbb2c419b8406f51d6b1bd6
Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
2015-10-11 22:36:44 -07:00
David Pursell
fa1d9db173 adb: add test for non-interactive stdin.
Add a test to send stdin to non-interactive `adb shell`.

This new test will hang on ToT devices that support shell_v2 until they
are rebuilt with the corresponding adb CL. A new feature could be added
instead to filter those devices out, but it doesn't seem worth it as no
devices have yet been released with shell_v2.

This CL also fixes a mistake I made earlier with device.linesep; this
is used to check device output, not separate device input. Using it
added unnecessary newline characters on Windows.

Bug: http://b/24565284
Change-Id: Ic123402975033d74688f56a36acac993af6815e6
2015-10-09 16:51:12 -07:00
David Pursell
46e268e990 adb: make shell protocol work again.
http://r.android.com/173810 changed the shell feature name. This CL
updates the python scripts to re-enable shell protocol tests, and adds
an additional test for `adb shell -x`.

Change-Id: I961adf7abd1782ea98f3f82d8af11dcaa02f9570
2015-09-30 17:22:32 -07:00
David Pursell
9278d96e77 adb: fix install escaping test.
The install escaping test fails if the device supports exit codes. This
fixes the test to ignore the exit code since we expect the install to
fail.

Change-Id: I37bb39552a6e9068ac088a25d831f45d81b28155
2015-09-22 14:07:36 -07:00
David Pursell
d89fcd4f76 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
2015-09-22 12:50:39 -07:00
Dan Albert
32e1307f45 Move python-adb from system/core/adb.
This really ought to be maintained as a separate project. Also adds a
setup.py for distribution.

Bug: http://b/22881740
Change-Id: I8e11e4154fac21d3196a533613822b236b2b73e6
2015-09-18 13:41:56 -07:00