Skip to content

Commit c048831

Browse files
Frodevansjanc
authored andcommitted
wid: Fix BAP/UCL/STR/BV-530-C
This particular test case use two lower testers to set up two streams, and as such wid 364 is called for both of them. Previously AutoPTS did not account for separate lower testers in this wid, which caused the second streaming event to be ignored, in turn failing the test case. The changes in this commit fixes this issue.
1 parent b2ec998 commit c048831

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

autopts/wid/bap.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1911,15 +1911,22 @@ def hdl_wid_363(params: WIDParams):
19111911
return True
19121912

19131913

1914-
def hdl_wid_364(_: WIDParams):
1914+
def hdl_wid_364(params: WIDParams):
19151915
"""
19161916
After processed audio stream data, please click OK.
19171917
"""
1918+
if params.test_case_name.endswith('LT2'):
1919+
addr = lt2_addr_get()
1920+
addr_type = lt2_addr_type_get()
1921+
else:
1922+
addr = pts_addr_get()
1923+
addr_type = pts_addr_type_get()
1924+
19181925
stack = get_stack()
19191926

19201927
for config in stack.bap.ase_configs:
19211928
if config.audio_dir == AudioDir.SOURCE:
1922-
if config.addr_type == pts_addr_type_get() and config.addr == pts_addr_get():
1929+
if config.addr_type == addr_type and config.addr == addr:
19231930
ev = stack.bap.wait_stream_received_ev(config.addr_type,
19241931
config.addr,
19251932
config.ase_id,

0 commit comments

Comments
 (0)