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 <[email protected]>
  • Loading branch information
greg-intel committed Jun 13, 2023
1 parent 32c98bb commit d7c4eb8
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 @@ -23,7 +23,8 @@ set -e
##

# shellcheck source=case-lib/lib.sh
source "$(dirname "${BASH_SOURCE[0]}")"/../case-lib/lib.sh
TESTDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")/" && pwd)
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 d7c4eb8

Please sign in to comment.