From 594ab41893c73a23db0504e39f5dc526bde60c9b Mon Sep 17 00:00:00 2001 From: Ronald Cron Date: Mon, 22 Jul 2024 11:06:33 +0200 Subject: [PATCH] psasim: Fix IPCs removal Signed-off-by: Ronald Cron --- tests/psa-client-server/psasim/test/kill_server.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/psa-client-server/psasim/test/kill_server.sh b/tests/psa-client-server/psasim/test/kill_server.sh index 7aba5a32ed..b6c4f6843e 100755 --- a/tests/psa-client-server/psasim/test/kill_server.sh +++ b/tests/psa-client-server/psasim/test/kill_server.sh @@ -13,4 +13,7 @@ rm -f psa_service_* rm -f psa_server.log # Remove all IPCs -ipcs -q | awk '{ printf " -q " $2 }' | xargs ipcrm > /dev/null 2>&1 || true +# Not just ipcrm -all=msg as it is not supported on macOS. +# Filter out header and empty lines, choosing to select based on keys being +# output in hex. +ipcs -q | fgrep 0x | awk '{ printf " -q " $2 }' | xargs ipcrm > /dev/null 2>&1 || true