Skip to content

Commit 9cfbb27

Browse files
committed
Merge branch 'bugfix/bt_idf_ci_v5.4' into 'release/v5.4'
fix(bt/examples): Fixed test_bt_l2cap not finding ESP_SDP_CREATE_RECORD_COMP_EVT (v5.4) See merge request espressif/esp-idf!43604
2 parents 25b783c + 4d09368 commit 9cfbb27

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

examples/bluetooth/bluedroid/classic_bt/pytest_classic_bt_test.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,11 @@ def test_bt_l2cap(app_path: str, dut: Tuple[IdfDut, IdfDut]) -> None:
150150
client = dut[1]
151151

152152
server.expect_exact('ESP_BT_L2CAP_INIT_EVT: status:0', timeout=30)
153-
server.expect_exact('ESP_BT_L2CAP_START_EVT: status:0', timeout=30)
154-
server.expect_exact('ESP_SDP_CREATE_RECORD_COMP_EVT: status:0', timeout=30)
153+
server.expect(
154+
r'(?s)(ESP_BT_L2CAP_START_EVT: status:0.*ESP_SDP_CREATE_RECORD_COMP_EVT: status:0|'
155+
r'ESP_SDP_CREATE_RECORD_COMP_EVT: status:0.*ESP_BT_L2CAP_START_EVT: status:0)',
156+
timeout=30,
157+
)
155158
client.expect_exact('ESP_BT_L2CAP_INIT_EVT: status:0', timeout=30)
156159
client.expect_exact('ESP_SDP_SEARCH_COMP_EVT: status:0', timeout=30)
157160
client.expect_exact('ESP_BT_L2CAP_OPEN_EVT: status:0', timeout=30)

0 commit comments

Comments
 (0)