Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions tests/bluetooth/classic/smp_key_persist/pytest/test_smp.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,18 @@ async def sm_key_persist_004(hci_port, shell, dut, address) -> None:
device, shell, dut, bumble_address, iut_address
)

await send_cmd_to_iut(shell, dut, "br clear all", "Pairings successfully cleared")
lines = await send_cmd_to_iut(
shell, dut, "br clear all", "Pairings successfully cleared"
)

await sm_test_initial_disconnect(dut, connection)
disconnected = False
for line in lines:
if "Disconnected:" in line:
disconnected = True
break

if not disconnected:
await sm_test_initial_disconnect(dut, connection)

await sm_test_reboot(shell, dut)

Expand Down