Skip to content

Commit

Permalink
tests/multi_bluetooth: Skip tests when BLE features are unsupported.
Browse files Browse the repository at this point in the history
Signed-off-by: Damien George <damien@micropython.org>
  • Loading branch information
dpgeorge committed Mar 12, 2021
1 parent 2a38d71 commit e98ff3f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/multi_bluetooth/ble_gap_pair.py
Expand Up @@ -4,6 +4,10 @@
from micropython import const
import time, machine, bluetooth

if not hasattr(bluetooth.BLE, "gap_pair"):
print("SKIP")
raise SystemExit

TIMEOUT_MS = 4000

_IRQ_CENTRAL_CONNECT = const(1)
Expand Down
4 changes: 4 additions & 0 deletions tests/multi_bluetooth/ble_gap_pair_bond.py
Expand Up @@ -5,6 +5,10 @@
from micropython import const
import time, machine, bluetooth

if not hasattr(bluetooth.BLE, "gap_pair"):
print("SKIP")
raise SystemExit

TIMEOUT_MS = 4000

_IRQ_CENTRAL_CONNECT = const(1)
Expand Down
4 changes: 4 additions & 0 deletions tests/multi_bluetooth/ble_l2cap.py
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions tests/multi_bluetooth/perf_l2cap.py
Expand Up @@ -3,6 +3,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)
Expand Down

0 comments on commit e98ff3f

Please sign in to comment.