Skip to content

Commit 70c9d34

Browse files
lyakhmarc-hb
authored andcommitted
multiple-pipeline: add debugging when pkill fails
Sometimes pkill seems to fail terminating aplay and arecord processes. Add a system request to check state of those processes to investigate why they couldn't be killed. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
1 parent ae2f9ed commit 70c9d34

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test-case/multiple-pipeline.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,11 @@ do
206206
pkill -9 aplay || true
207207
sleep 1 # try not to pollute the next iteration
208208

209+
if pgrep arecord || pgrep aplay; then
210+
printf '%c' 't' | sudo tee /proc/sysrq-trigger > /dev/null
211+
sleep 1
212+
fi
213+
209214
# check kernel log for each iteration to catch issues
210215
sof-kernel-log-check.sh "$KERNEL_CHECKPOINT" || die "Caught error in kernel log"
211216
done

0 commit comments

Comments
 (0)