Skip to content

Commit 7259944

Browse files
authored
multiple-pipeline: skip Echo Reference pipeline when getting count (#875)
Previously, the Echo Reference pipeline has been skipped when running the parallel pipeline test, but it wasn't skipped when calculating PIPELINE_COUNT. Therefore, on all pipelines mode, the expected process count is inconsistent with the actual running process. To solve this issue, skip the same pipeline when acquiring the pipeline count for consistency. Signed-off-by: Yongan Lu <yongan.lu@intel.com>
1 parent 96bca11 commit 7259944

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

test-case/multiple-pipeline.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,11 @@ tplg=${OPT_VAL['t']}
6767
f_arg=${OPT_VAL['f']}
6868
logger_disabled || func_lib_start_log_collect
6969

70+
# skip the Echo Reference pipeline
71+
MULTI_PIPELINE_FILTER='~pcm:Amplifier Reference'
7072
max_count=0
7173
# this line will help to get $PIPELINE_COUNT
72-
func_pipeline_export "$tplg" "type:any"
74+
func_pipeline_export "$tplg" "type:any & ${MULTI_PIPELINE_FILTER}"
7375
# acquire pipeline count that will run in parallel, if the number of pipeline
7476
# in topology is less than the required pipeline count, all pipeline will be started.
7577
[[ $PIPELINE_COUNT -gt ${OPT_VAL['c']} ]] && max_count=${OPT_VAL['c']} || max_count=$PIPELINE_COUNT
@@ -170,11 +172,11 @@ do
170172
'p' | 'a')
171173
tmp_count=$max_count
172174
func_run_pipeline_with_type "playback"
173-
func_run_pipeline_with_type "capture" "~pcm:Amplifier Reference"
175+
func_run_pipeline_with_type "capture" "${MULTI_PIPELINE_FILTER}"
174176
;;
175177
'c')
176178
tmp_count=$max_count
177-
func_run_pipeline_with_type "capture" "~pcm:Amplifier Reference"
179+
func_run_pipeline_with_type "capture" "${MULTI_PIPELINE_FILTER}"
178180
func_run_pipeline_with_type "playback"
179181
;;
180182
*)

0 commit comments

Comments
 (0)