Skip to content

Commit

Permalink
multiple-pause-resume: add error handling when expect function return…
Browse files Browse the repository at this point in the history
…s error

Add similiar log and error handling with check-pause-resume.sh.

Signed-off-by: Fred Oh <[email protected]>
  • Loading branch information
fredoh9 committed Jul 13, 2022
1 parent 8d0d04e commit d84272f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test-case/multiple-pause-resume.sh
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,12 @@ do
declare -a pid_lst
for idx in $pipeline_combine_str
do
func_pause_resume_pipeline "$idx"
func_pause_resume_pipeline "$idx" || {
ret=$?
printf '\n\nERROR: pause_resume expect failed, returned %d\n' "$ret"
sof-process-kill.sh || dlogs 'failed to cleanup audio processes'
exit 1
}
pid_lst=("${pid_lst[@]}" $!)
done
# wait for expect script finished
Expand Down

0 comments on commit d84272f

Please sign in to comment.