Skip to content

Commit

Permalink
check-suspend-resume-with-audio.sh: de-dupe directory.
Browse files Browse the repository at this point in the history
There were two references to $(dirname "${BASH_SOURCE[0]}),
so a temp variable was created to hold this reference.  The
two references were then re-written.

Signed-off-by: Greg Galloway <greg.galloway@intel.com>
  • Loading branch information
greg-intel authored and marc-hb committed Jun 28, 2023
1 parent 56791a1 commit 7be8beb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test-case/check-suspend-resume-with-audio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ set -e
## check kernel log and find no errors
##

TESTDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")/" && pwd)
# shellcheck source=case-lib/lib.sh
source "$(dirname "${BASH_SOURCE[0]}")"/../case-lib/lib.sh
source "${TESTDIR}"/../case-lib/lib.sh

OPT_NAME['l']='loop' OPT_DESC['l']='suspend/resume loop count'
OPT_HAS_ARG['l']=1 OPT_VAL['l']=3
Expand Down Expand Up @@ -116,7 +117,7 @@ do
ps --ppid $$ -f
exit 1
}
"$(dirname "${BASH_SOURCE[0]}")"/check-suspend-resume.sh "${opt_arr[@]}" || die "suspend resume failed"
"${TESTDIR}"/check-suspend-resume.sh "${opt_arr[@]}" || die "suspend resume failed"

# check kernel log for each iteration to catch issues
sof-kernel-log-check.sh "$LOCAL_CHECK_POINT" || die "Caught error in kernel log"
Expand Down

0 comments on commit 7be8beb

Please sign in to comment.