Skip to content

Commit d84272f

Browse files
committed
multiple-pause-resume: add error handling when expect function returns error
Add similiar log and error handling with check-pause-resume.sh. Signed-off-by: Fred Oh <fred.oh@linux.intel.com>
1 parent 8d0d04e commit d84272f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test-case/multiple-pause-resume.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,12 @@ do
161161
declare -a pid_lst
162162
for idx in $pipeline_combine_str
163163
do
164-
func_pause_resume_pipeline "$idx"
164+
func_pause_resume_pipeline "$idx" || {
165+
ret=$?
166+
printf '\n\nERROR: pause_resume expect failed, returned %d\n' "$ret"
167+
sof-process-kill.sh || dlogs 'failed to cleanup audio processes'
168+
exit 1
169+
}
165170
pid_lst=("${pid_lst[@]}" $!)
166171
done
167172
# wait for expect script finished

0 commit comments

Comments
 (0)