pts/sm_test: vavlidate pairing method

This commit is contained in:
Matthias Ringwald 2018-04-01 18:26:01 +02:00
parent df3d26412f
commit cd3c43a4cf

View File

@ -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