Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4d66fc6 authored by Josh Gao's avatar Josh Gao
Browse files

adbd: add a perfunctory abb test.

Bug: http://b/148838069
Test: python3 -m unittest test_device.AbbTest
Change-Id: Ia8f83a535d4a513f4bdce5cfa4bfe69cd2dbb634
parent 93dee964
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -81,6 +81,13 @@ class DeviceTest(unittest.TestCase):
        self.device = adb.get_device()
        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):
class ForwardReverseTest(DeviceTest):
    def _test_no_rebind(self, description, direction_list, direction,
    def _test_no_rebind(self, description, direction_list, direction,
                       direction_no_rebind, direction_remove_all):
                       direction_no_rebind, direction_remove_all):