From 70c9d34fb3b9c1ca89f0a75a9ee3a1fcf19d6c45 Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Wed, 26 Jun 2024 12:42:16 +0200 Subject: [PATCH] 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 --- test-case/multiple-pipeline.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test-case/multiple-pipeline.sh b/test-case/multiple-pipeline.sh index b760743f..c57d2c38 100755 --- a/test-case/multiple-pipeline.sh +++ b/test-case/multiple-pipeline.sh @@ -206,6 +206,11 @@ do pkill -9 aplay || true sleep 1 # try not to pollute the next iteration + if pgrep arecord || pgrep aplay; then + printf '%c' 't' | sudo tee /proc/sysrq-trigger > /dev/null + sleep 1 + fi + # check kernel log for each iteration to catch issues sof-kernel-log-check.sh "$KERNEL_CHECKPOINT" || die "Caught error in kernel log" done