From e98ff3f08e966595fd84d83296f84962ee3d8d94 Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 12 Mar 2021 19:50:13 +1100 Subject: tests/multi_bluetooth: Skip tests when BLE features are unsupported. Signed-off-by: Damien George --- tests/multi_bluetooth/ble_l2cap.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/multi_bluetooth/ble_l2cap.py') diff --git a/tests/multi_bluetooth/ble_l2cap.py b/tests/multi_bluetooth/ble_l2cap.py index a26f59b3ef..b14eeffcc5 100644 --- a/tests/multi_bluetooth/ble_l2cap.py +++ b/tests/multi_bluetooth/ble_l2cap.py @@ -7,6 +7,10 @@ from micropython import const import time, machine, bluetooth, random +if not hasattr(bluetooth.BLE, "l2cap_connect"): + print("SKIP") + raise SystemExit + TIMEOUT_MS = 1000 _IRQ_CENTRAL_CONNECT = const(1) -- cgit v1.2.3