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

Commit cf32f431 authored by Henri Chataing's avatar Henri Chataing
Browse files

pandora/mmi2grpc: Do not invoke WaitSource for A2DP/*/AVP/* tests

WaitSource is blocking and is causing teh AVD to initiate
the AVDTP connection after a timeout, which goes against
the test steps followed by the PTS tool

Bug: 336232163
Test: atest pts-bot
Flag: EXEMPT, test change
Change-Id: Ib6dc5da852cbffabae7d4f98d39927008b130d07
parent 386020b0
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -67,7 +67,13 @@ class A2DPProxy(ProfileProxy):
        the IUT connects to PTS to establish pairing.
        """

        if "SRC" in test:
        if "A2DP/SRC/AVP" in test or "A2DP/SNK/AVP" in test:
            # WaitSource is blocking and cannot be invoked in these tests
            # because Android will initiate the AVDTP connection after a
            # timeout if the remote device is inactive.
            self.connection = self.host.WaitConnection(address=pts_addr).connection

        elif "SRC" in test:
            self.connection = self.host.WaitConnection(address=pts_addr).connection
            try:
                if "INT" in test: