test(folio): cover runner-session orphans in the gate harness

This commit is contained in:
pj committed 2026-06-07 17:12:23 +05:30
1 parent 11a6a5b4c8
commit 672dd52772
1 file changed
+9 -2
+9 -2
View File
@@ -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