From cd3c43a4cf50413ff3e6c4a5d4867875be316196 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Sun, 1 Apr 2018 18:26:01 +0200 Subject: [PATCH] pts/sm_test: vavlidate pairing method --- test/pts/sm_test.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/pts/sm_test.py b/test/pts/sm_test.py index acb46814b..31fbd57dd 100755 --- a/test/pts/sm_test.py +++ b/test/pts/sm_test.py @@ -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