From e4d66fc6782002aff0be6676470b41602fb31759 Mon Sep 17 00:00:00 2001 From: Josh Gao Date: Tue, 4 Feb 2020 12:32:43 -0800 Subject: [PATCH] adbd: add a perfunctory abb test. Bug: http://b/148838069 Test: python3 -m unittest test_device.AbbTest Change-Id: Ia8f83a535d4a513f4bdce5cfa4bfe69cd2dbb634 --- adb/test_device.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/adb/test_device.py b/adb/test_device.py index 1568e2345..6a9ff89ef 100755 --- a/adb/test_device.py +++ b/adb/test_device.py @@ -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):