psasim: Fix IPCs removal
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
diff --git a/tests/psa-client-server/psasim/test/kill_server.sh b/tests/psa-client-server/psasim/test/kill_server.sh
index 7aba5a3..b6c4f68 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_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