diff options
author | Damien George <damien@micropython.org> | 2021-03-12 19:50:13 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-03-12 20:08:20 +1100 |
commit | e98ff3f08e966595fd84d83296f84962ee3d8d94 (patch) | |
tree | b4cda72c91ada154350795c706220c50be54637c /tests/multi_bluetooth/ble_l2cap.py | |
parent | 2a38d7103672580882fb621a5b76e8d26805d593 (diff) | |
download | micropython-e98ff3f08e966595fd84d83296f84962ee3d8d94.tar.gz micropython-e98ff3f08e966595fd84d83296f84962ee3d8d94.zip |
tests/multi_bluetooth: Skip tests when BLE features are unsupported.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/multi_bluetooth/ble_l2cap.py')
-rw-r--r-- | tests/multi_bluetooth/ble_l2cap.py | 4 |
1 files changed, 4 insertions, 0 deletions
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) |