From 3d6c289782acbabf8c152703064a15d7209b84a6 Mon Sep 17 00:00:00 2001 From: Piotr Narajowski Date: Fri, 9 Aug 2024 14:31:40 +0200 Subject: [PATCH] Fix GAP/SEC/AUT/BV-19-C WID108 appears twice in a row for this test with different descritpions. The point is to call gap_pair command only once. This was also the case for test GAP/BOND/BON/BV-02-C, which was explained by sjanc: "On Zephyr second call is just a NOP (since encryption is already enabled), but in NimBLE this results in re-encrypting link with existing LTK which confuses PTS due to unexpected HCI event." --- autopts/wid/gap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autopts/wid/gap.py b/autopts/wid/gap.py index e1bfafd8bd..0ef853f23d 100644 --- a/autopts/wid/gap.py +++ b/autopts/wid/gap.py @@ -505,7 +505,7 @@ def hdl_wid_106(params: WIDParams): def hdl_wid_108(params: WIDParams): - if params.test_case_name in ['GAP/BOND/BON/BV-02-C']: + if params.test_case_name in ['GAP/BOND/BON/BV-02-C', 'GAP/SEC/AUT/BV-19-C']: if params.description.startswith('Please configure the IUT into LE Security and start pairing process.'): return True