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

Commit 787db616 authored by Martin Brabham's avatar Martin Brabham
Browse files

Cert SecurityTest: Create branching conditional for multi test run

Bug: 162984360
Tag: #gd-refactor
Test: cert/run --host SecurityTest
Change-Id: I84842b137a7c7e82b138e719feffcdb4e8ae335c
parent ab27a239
Loading
Loading
Loading
Loading
+13 −9
Original line number Diff line number Diff line
@@ -288,6 +288,7 @@ class SecurityTest(GdBaseTestClass):
                                    if dut_auth_reqs in self.mitm_auth_reqs or cert_auth_reqs in self.mitm_auth_reqs:
                                        expected_init_bond_event = BondMsgType.DEVICE_BOND_FAILED

                                if cert_oob_present == OobDataPresent.NOT_PRESENT:
                                    self._run_ssp_numeric_comparison(
                                        initiator=self.dut_security,
                                        responder=self.cert_security,
@@ -297,6 +298,9 @@ class SecurityTest(GdBaseTestClass):
                                        expected_resp_ui_event=expected_resp_ui_event,
                                        expected_init_bond_event=expected_init_bond_event,
                                        expected_resp_bond_event=expected_resp_bond_event)
                                else:
                                    logging.error("Code path not yet implemented")
                                    assertThat(False).isTrue()

                                self.dut_security.remove_bond(self.cert_security.get_address(),
                                                              common.BluetoothAddressTypeEnum.PUBLIC_DEVICE_ADDRESS)