From 1fdbf6638616ec36639a1f239325dbc602161336 Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Fri, 18 Feb 2022 20:17:10 -0800 Subject: [PATCH 1/2] multiple-pipeline.sh: add usual TESTDIR variable for re-use multiple-pipeline.sh: add usual TESTDIR variable for re-use Signed-off-by: Marc Herbert --- test-case/multiple-pipeline.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test-case/multiple-pipeline.sh b/test-case/multiple-pipeline.sh index b4627995..2392b539 100755 --- a/test-case/multiple-pipeline.sh +++ b/test-case/multiple-pipeline.sh @@ -34,8 +34,10 @@ set -e +TESTDIR="$(dirname "${BASH_SOURCE[0]}")"/.. + # shellcheck source=case-lib/lib.sh -source "$(dirname "${BASH_SOURCE[0]}")"/../case-lib/lib.sh +source "${TESTDIR}"/case-lib/lib.sh OPT_NAME['t']='tplg' OPT_DESC['t']='Topology path, default to environment variable: TPLG' OPT_HAS_ARG['t']=1 OPT_VAL['t']="$TPLG" From 83f669c3ea6700ef134edb1ce7467a79ba5e6574 Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Fri, 18 Feb 2022 20:19:05 -0800 Subject: [PATCH 2/2] multiple-pipeline.sh: temporarily disable capture on BDW Known issue https://github.com/thesofproject/sof/issues/3170 has been polluting the test results for years. Signed-off-by: Marc Herbert --- test-case/multiple-pipeline.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test-case/multiple-pipeline.sh b/test-case/multiple-pipeline.sh index 2392b539..92dc3786 100755 --- a/test-case/multiple-pipeline.sh +++ b/test-case/multiple-pipeline.sh @@ -142,7 +142,18 @@ ps_checks() func_error_exit "Caught abnormal process status of aplay" } +main() +{ + local platf; platf=$("${TESTDIR}"/tools/sof-dump-status.py --platform) + if [ "$platf" = bdw ] && [ "$f_arg" != 'p' ] && ! is_zephyr; then + skip_test \ + "multi-capture disabled on BDW https://github.com/thesofproject/sof/issues/3170" + fi +} + +main "$@" +# TODO: move this to main() https://github.com/thesofproject/sof-test/issues/740 for i in $(seq 1 $loop_cnt) do # set up checkpoint for each iteration