From 3282857a9f20924d284b598798061ecaed9847f0 Mon Sep 17 00:00:00 2001 From: David Young Date: Sun, 29 Nov 2026 14:52:30 -0700 Subject: [PATCH] smoketest: wait for Superpanel's app to quit before opening it again Opened again while the last one was still quitting, Launch Services failed with -600 now and then. Co-Authored-By: Claude Opus 5.5 --- smoketest/scenarios/30-core-local.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/smoketest/scenarios/30-core-local.sh b/smoketest/scenarios/30-core-local.sh index 393cf08..a1272d0 100644 --- a/smoketest/scenarios/30-core-local.sh +++ b/smoketest/scenarios/30-core-local.sh @@ -4,8 +4,16 @@ TIER=quick source "$CONNECTOR/configure.d/10-core.sh" +# The app opens its page and quits. Opened again while the last one is still +# quitting, Launch Services can fail with -600 (no such process), so this +# waits for it to be gone and tries once more. superpanel_opens() { - open -g -W "$SUPERPANEL_APP" + local i + for i in 1 2 3 4 5 6 7 8 9 10; do + pgrep -f "$SUPERPANEL_APP/Contents/MacOS/" > /dev/null || break + sleep 1 + done + open -g -W "$SUPERPANEL_APP" 2> /dev/null || { sleep 3; open -g -W "$SUPERPANEL_APP"; } } scenario() {