adbd: add a perfunctory abb test.
Bug: http://b/148838069 Test: python3 -m unittest test_device.AbbTest Change-Id: Ia8f83a535d4a513f4bdce5cfa4bfe69cd2dbb634
This commit is contained in:
parent
93dee964d4
commit
e4d66fc678
|
@ -81,6 +81,13 @@ class DeviceTest(unittest.TestCase):
|
|||
self.device = adb.get_device()
|
||||
|
||||
|
||||
class AbbTest(DeviceTest):
|
||||
def test_smoke(self):
|
||||
result = subprocess.run(['adb', 'abb'], capture_output=True)
|
||||
self.assertEqual(1, result.returncode)
|
||||
expected_output = b"cmd: No service specified; use -l to list all services\n"
|
||||
self.assertEqual(expected_output, result.stderr)
|
||||
|
||||
class ForwardReverseTest(DeviceTest):
|
||||
def _test_no_rebind(self, description, direction_list, direction,
|
||||
direction_no_rebind, direction_remove_all):
|
||||
|
|
Loading…
Reference in New Issue