From b2208764e14e8bbe5699429a4a1a7d972cfdbf5e Mon Sep 17 00:00:00 2001 From: Amery Song Date: Thu, 17 Sep 2020 14:32:03 +0800 Subject: [PATCH] test-case: add missing pipeline count acquisition logic The commit 84f58954 wrongly remove the code logic to acquire pipeline count from multi-pipeline-playback/ capture test cases. This leads to the 'max_count' used in these scripts being empty, as no pipeline is actually tested, the test cases will always pass. This patch adds the pipeline count acquisition logic back. Signed-off-by: Amery Song --- test-case/multiple-pipeline-capture.sh | 1 + test-case/multiple-pipeline-playback.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/test-case/multiple-pipeline-capture.sh b/test-case/multiple-pipeline-capture.sh index 916dc712..6ed9818d 100755 --- a/test-case/multiple-pipeline-capture.sh +++ b/test-case/multiple-pipeline-capture.sh @@ -48,6 +48,7 @@ tplg=${OPT_VALUE_lst['t']} [[ ${OPT_VALUE_lst['s']} -eq 1 ]] && func_lib_start_log_collect max_count=0 +func_pipeline_export $tplg "type:any" # this line will help to get $PIPELINE_COUNT # get the min value of TPLG:'pipeline count' with Case:'pipeline count' [[ $PIPELINE_COUNT -gt ${OPT_VALUE_lst['c']} ]] && max_count=${OPT_VALUE_lst['c']} || max_count=$PIPELINE_COUNT func_lib_setup_kernel_last_line diff --git a/test-case/multiple-pipeline-playback.sh b/test-case/multiple-pipeline-playback.sh index 2d84dc0a..e0b97d6d 100755 --- a/test-case/multiple-pipeline-playback.sh +++ b/test-case/multiple-pipeline-playback.sh @@ -48,6 +48,7 @@ tplg=${OPT_VALUE_lst['t']} [[ ${OPT_VALUE_lst['s']} -eq 1 ]] && func_lib_start_log_collect max_count=0 +func_pipeline_export $tplg "type:any" # this line will help to get $PIPELINE_COUNT # get the min value of TPLG:'pipeline count' with Case:'pipeline count' [[ $PIPELINE_COUNT -gt ${OPT_VALUE_lst['c']} ]] && max_count=${OPT_VALUE_lst['c']} || max_count=$PIPELINE_COUNT func_lib_setup_kernel_last_line