History log of /system/core/adb/tests/test_adb.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2181c722ceac50dde3c4a399950b37e7fd6a5893 15-May-2015 Elliott Hughes <enh@google.com> Fix ' escaping in adb.

You can't just use \' inside a single-quoted string.

Bug: http://b/20323053
Bug: http://b/3090932
Change-Id: I73754b097671d02dc11c35052f0534b6dd789e4f
(cherry picked from commit 84b0bf22644b35d6b3d3f7dc96311a484c3519b3)
/system/core/adb/tests/test_adb.py
aceb9c08df80da9c929af2998c54870455b79a03 05-May-2015 Elliott Hughes <enh@google.com> Implement the ssh(1) escaping rules.

The first rule of ssh(1) escaping is that there is no escaping.

This doesn't undo any of my recent security fixes because they're all
calling escape_arg themselves.

This fixes "adb shell rm /data/dalvik-cache/arm/*".

Also remove do_cmd which caused concern during code review.

Bug: http://b/20564385
Change-Id: I4588fd949d51e2a50cff47ea171ed2d75f402d0d
(cherry picked from commit 2b10111d25adcfe3627103b73edad22f188c97ba)
/system/core/adb/tests/test_adb.py
8e6edc0d89f370fbc1760139849cf36d3ac4d589 22-Apr-2015 Elliott Hughes <enh@google.com> Add a couple more adb shell regression tests.

Bug: http://b/15479704
Change-Id: Id3e7f0df101ad61db509df313c13210a8bd8b124
/system/core/adb/tests/test_adb.py
0053bb3f1a4647e6b2deea3d7cf0a1965a3d9bad 21-Apr-2015 Elliott Hughes <enh@google.com> Add a test for shell escaping.

Until I fixed this, we would fail this example:

$ adb shell sh -c 'echo hello; echo world'
hello
/system/bin/sh: echo world: not found

Bug: http://b/19734868
Change-Id: I11a437cd0c0362303028f23fbaa103611b75707e
/system/core/adb/tests/test_adb.py
857d7db69d2aac03ea624a0401e7231a3cef4597 03-Mar-2015 Dan Albert <danalbert@google.com> Make the root/unroot test more robust.

* Check the current adb user to choose the order of root/unroot.
* Re-root the device when finished.

Change-Id: I47a14b89e2c405bd63722e4d2043fcc629fb5e58
/system/core/adb/tests/test_adb.py
b2e57b738f4d24e59235738e74dc2f9a8f53f64e 21-Feb-2015 Dan Albert <danalbert@google.com> Make Python tests only check the current device.

In practice testing all connected devices is a pain, since it's
probably each device is running a different build. It would probably
make sense to just move this functionality up into a higher level test
runner (which could just live in main).

Also rename test_devices to test_shell, since it doesn't really test
`adb devices`.

Change-Id: Ie96d3e83b30acfac4e3bcbd9821690c0ad4d2f7e
/system/core/adb/tests/test_adb.py
9885881d0689e7999f2d7e7558e894dc73a0a0b0 06-Oct-2014 Dan Pasanen <dan.pasanen@gmail.com> adb: add "adb unroot" to restart adb in non-root mode

Change-Id: Ice6b94a71a62648ac073d129914a07372411fb25
/system/core/adb/tests/test_adb.py
d83a9c55f46017627821787b6405b75682f1d391 09-Dec-2014 Riley Andrews <riandrews@google.com> Python unit test for adb.

Change-Id: I1b2b8004f47b708e6a1d6a4ad20816e7beb21a0f
/system/core/adb/tests/test_adb.py