From 485dc8575dce011830a0258cf786c77785e95b91 Mon Sep 17 00:00:00 2001 From: Fred Oh Date: Tue, 4 May 2021 20:43:00 -0700 Subject: [PATCH] multiple-pipeline: add delay before ps_checks Sometimes last aplay or arecord process might delay to start. This causes the test case to fail due to number of PIDs mistmatch. This is not 100% reproducible but slower platform has more chance to fail. Signed-off-by: Fred Oh --- test-case/multiple-pipeline.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test-case/multiple-pipeline.sh b/test-case/multiple-pipeline.sh index b242ceb7..26449577 100755 --- a/test-case/multiple-pipeline.sh +++ b/test-case/multiple-pipeline.sh @@ -163,6 +163,10 @@ do die "Wrong -f argument $f_arg, see -h" esac + # FIXME: Last aplay or arecord process might delay to start. + # Without this sleep, ps_checks returns failure in some cases + sleep 0.5 + dlogi "checking pipeline status" ps_checks