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

Commit 20284f96 authored by David Duarte's avatar David Duarte Committed by Charlie Boutier
Browse files

avatar: Use pandora_experimental grpc interfaces

Bug: 245749560
Test: atest -v avatar
Change-Id: I6719a3d25b7116b57cca9541459859b3aab34f32
parent a7400c5b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ python_test_host {
    ],
    libs: [
        "libavatar",
        "pandora_experimental-python",
    ],
    required: ["PandoraServer"],
    test_suites: ["general-tests"],
+9 −1
Original line number Diff line number Diff line
@@ -21,6 +21,14 @@ from grpc import RpcError

from avatar.controllers import pandora_device

import google.protobuf.descriptor_pool

# Reset protobuf descriptor_pool as we are reimporting
# a module with the same package
google.protobuf.descriptor_pool.Default().__init__()

from pandora_experimental.host_grpc import Host


class ExampleTest(base_test.BaseTestClass):

@@ -30,7 +38,7 @@ class ExampleTest(base_test.BaseTestClass):
        self.ref = self.pandora_devices[1]

    def setup_test(self):
        self.dut.host.HardReset()
        Host(self.dut.channel).HardReset()
        # TODO: wait for server
        time.sleep(3)