From 672dd5277232fb7eb7bbbe846fb4b9c03c549c88 Mon Sep 17 00:00:00 2001 From: PJ Date: Sun, 7 Jun 2026 17:12:23 +0530 Subject: [PATCH] test(folio): cover runner-session orphans in the gate harness --- examples/folio/gates.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/examples/folio/gates.sh b/examples/folio/gates.sh index b2b53a1..414b300 100755 --- a/examples/folio/gates.sh +++ b/examples/folio/gates.sh @@ -182,13 +182,20 @@ print(samples[rank - 1]) ' } -# G5 orphan check: report any lingering companion (and, on the device backend, -# the XCTest runner java sidecar) processes. Empty output means clean. +# G5 orphan check: report any lingering companion, runner session (the hybrid +# simulator driver hosts an in-simulator runner), and, on the device backend, +# the XCTest runner java sidecar. Empty output means clean. orphan_processes() { local found="" if pgrep -f "$companion_process_name" >/dev/null 2>&1; then found+="companion " fi + if pgrep -f "sanderling-runner.*xctestrun" >/dev/null 2>&1; then + found+="runner-session " + fi + if pgrep -f "CompanionRunnerUITests-Runner" >/dev/null 2>&1; then + found+="runner-app " + fi if [[ "$BACKEND" == "device" ]]; then # The native sidecar that drives the XCTest runner for physical devices. if pgrep -f "sanderling.*sidecar.jar" >/dev/null 2>&1; then