From c0bd6d408706d7e09017da3fea196eb0deec64bd Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Tue, 9 Jul 2024 14:37:23 -0700 Subject: [PATCH] check-pause-resume.sh: add $TOPDIR variable So we can invoke other tools easily. Signed-off-by: ubuntu Signed-off-by: Marc Herbert --- test-case/check-pause-resume.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test-case/check-pause-resume.sh b/test-case/check-pause-resume.sh index 1d5b8153..6819cf04 100755 --- a/test-case/check-pause-resume.sh +++ b/test-case/check-pause-resume.sh @@ -17,8 +17,9 @@ set -e ## no error happen for aplay/arecord ## +TOPDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")"/.. && pwd) # shellcheck source=case-lib/lib.sh -source "$(dirname "${BASH_SOURCE[0]}")"/../case-lib/lib.sh +source "$TOPDIR"/case-lib/lib.sh OPT_NAME['t']='tplg' OPT_DESC['t']='tplg file, default value is env TPLG: $''TPLG' OPT_HAS_ARG['t']=1 OPT_VAL['t']="$TPLG"