mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-24 22:43:35 +00:00
pts/sm_test: vavlidate pairing method
This commit is contained in:
parent
df3d26412f
commit
cd3c43a4cf
@ -376,6 +376,14 @@ def run_test(test_descriptor):
|
||||
else:
|
||||
test_ok &= test_descriptor['iut_pairing_complete_status'] == '0'
|
||||
|
||||
# check pairing method
|
||||
if 'SCJW' in test_name and ( test_descriptor['method'] != 'Just Works' and test_descriptor['method' != 'Numeric Comparison']):
|
||||
test_ok = False
|
||||
if 'SCPK' in test_name and test_descriptor['method'] != 'Passkey Entry':
|
||||
test_ok = False
|
||||
if 'SCOB' in test_name and test_descriptor['method'] != 'OOB':
|
||||
test_ok = False
|
||||
|
||||
# rename folder if test not ok
|
||||
if not test_ok:
|
||||
test_folder = 'TEST_FAIL-' + test_folder
|
||||
|
Loading…
x
Reference in New Issue
Block a user