Skip to content

Commit 5aec047

Browse files
Frodevansjanc
authored andcommitted
Make sure CSIP discovery events are unique
CSIP sirk events were not cleared after discovery, causing some test-cases to incorrectly assume all lower-testers were discovered when in fact they were not. This commit fixes this issue. The discovery for CSIP/CL/SP/BV-06-C under WID 20107 is the only exception, since this tests retrieves data directly from the SIRK event queue later during the handling of WID 13.
1 parent 8ce94d0 commit 5aec047

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

autopts/wid/csip.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def hdl_wid_11(_: WIDParams):
102102
addr = btp.pts_addr_get()
103103

104104
btp.csip_discover(addr_type, addr)
105-
ev = stack.csip.wait_sirk_ev(addr_type, addr, 30, remove=False)
105+
ev = stack.csip.wait_sirk_ev(addr_type, addr, 30)
106106
if ev is None:
107107
return False
108108

@@ -190,7 +190,7 @@ def hdl_wid_20100(params: WIDParams):
190190
'CSIP/CL/SPE/BI-02-C' in params.test_case_name or\
191191
'CSIP/CL/SPE/BI-03-C' in params.test_case_name:
192192
btp.csip_discover(addr_type, addr)
193-
ev = stack.csip.wait_sirk_ev(addr_type, addr, 30, remove=False)
193+
ev = stack.csip.wait_sirk_ev(addr_type, addr, 30)
194194
if ev is None:
195195
return False
196196
stack.csip.member_cnt += 1
@@ -215,7 +215,7 @@ def hdl_wid_20101(params: WIDParams):
215215
addr = btp.pts_addr_get()
216216

217217
btp.csip_discover(addr_type, addr)
218-
ev = stack.csip.wait_sirk_ev(addr_type, addr, 30, remove=False)
218+
ev = stack.csip.wait_sirk_ev(addr_type, addr, 30)
219219
if ev is None:
220220
return False
221221

@@ -236,7 +236,7 @@ def hdl_wid_20103(_: WIDParams):
236236
addr = btp.pts_addr_get()
237237

238238
btp.csip_discover(addr_type, addr)
239-
ev = stack.csip.wait_sirk_ev(addr_type, addr, 30, remove=False)
239+
ev = stack.csip.wait_sirk_ev(addr_type, addr, 30)
240240
if ev is None:
241241
return False
242242

@@ -379,7 +379,7 @@ def hdl_wid_20116(params: WIDParams):
379379
addr = btp.pts_addr_get()
380380

381381
btp.csip_discover(addr_type, addr)
382-
ev = stack.csip.wait_sirk_ev(addr_type, addr, 30, remove=False)
382+
ev = stack.csip.wait_sirk_ev(addr_type, addr, 30)
383383
if ev is None:
384384
return False
385385

0 commit comments

Comments
 (0)