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

Commit 3cffb55e authored by Hansong Zhang's avatar Hansong Zhang
Browse files

Cert: Move DUT assignment to common code

Test: run_cert_facade_only.sh
Change-Id: I5ca6fd006294f00e06a4d6b52832a1d64aae8c9f
parent 1b1612ba
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -60,6 +60,9 @@ class GdFacadeOnlyBaseTestClass(BaseTestClass):
        self.register_controller(
            importlib.import_module('cert.gd_device'), builtin=True)

        self.device_under_test = self.gd_devices[0]
        self.cert_device = self.gd_devices[1]

    def teardown_class(self):
        if self.rootcanal_running:
            self.rootcanal_process.send_signal(signal.SIGINT)
+0 −3
Original line number Diff line number Diff line
@@ -61,9 +61,6 @@ class SimpleHalTest(GdFacadeOnlyBaseTestClass):
            hal_facade_pb2.HciAclPacket(payload=concatenated))

    def setup_test(self):
        self.cert_device = self.gd_devices[0]
        self.device_under_test = self.gd_devices[1]

        self.device_under_test.rootservice.StartStack(
            facade_rootservice_pb2.StartStackRequest(
                module_under_test=facade_rootservice_pb2.BluetoothModule.Value(
+0 −3
Original line number Diff line number Diff line
@@ -34,9 +34,6 @@ from bluetooth_packets_python3 import hci_packets
class AclManagerTest(GdFacadeOnlyBaseTestClass):

    def setup_test(self):
        self.cert_device = self.gd_devices[0]
        self.device_under_test = self.gd_devices[1]

        self.device_under_test.rootservice.StartStack(
            facade_rootservice.StartStackRequest(
                module_under_test=facade_rootservice.BluetoothModule.Value(
+0 −3
Original line number Diff line number Diff line
@@ -26,9 +26,6 @@ from hci.facade import controller_facade_pb2 as controller_facade
class ControllerTest(GdFacadeOnlyBaseTestClass):

    def setup_test(self):
        self.cert_device = self.gd_devices[0]
        self.device_under_test = self.gd_devices[1]

        self.device_under_test.rootservice.StartStack(
            facade_rootservice.StartStackRequest(
                module_under_test=facade_rootservice.BluetoothModule.Value(
+0 −3
Original line number Diff line number Diff line
@@ -33,9 +33,6 @@ import bluetooth_packets_python3 as bt_packets
class DirectHciTest(GdFacadeOnlyBaseTestClass):

    def setup_test(self):
        self.cert_device = self.gd_devices[0]
        self.device_under_test = self.gd_devices[1]

        self.device_under_test.rootservice.StartStack(
            facade_rootservice.StartStackRequest(
                module_under_test=facade_rootservice.BluetoothModule.Value(
Loading