mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-04 12:07:09 +00:00
test(folio): cover runner-session orphans in the gate harness
This commit is contained in:
1 parent
11a6a5b4c8
commit
672dd52772
1 file changed
+9
-2
@@ -182,13 +182,20 @@ print(samples[rank - 1])
|
|||||||
'
|
'
|
||||||
}
|
}
|
||||||
|
|
||||||
# G5 orphan check: report any lingering companion (and, on the device backend,
|
# G5 orphan check: report any lingering companion, runner session (the hybrid
|
||||||
# the XCTest runner java sidecar) processes. Empty output means clean.
|
# simulator driver hosts an in-simulator runner), and, on the device backend,
|
||||||
|
# the XCTest runner java sidecar. Empty output means clean.
|
||||||
orphan_processes() {
|
orphan_processes() {
|
||||||
local found=""
|
local found=""
|
||||||
if pgrep -f "$companion_process_name" >/dev/null 2>&1; then
|
if pgrep -f "$companion_process_name" >/dev/null 2>&1; then
|
||||||
found+="companion "
|
found+="companion "
|
||||||
fi
|
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
|
if [[ "$BACKEND" == "device" ]]; then
|
||||||
# The native sidecar that drives the XCTest runner for physical devices.
|
# The native sidecar that drives the XCTest runner for physical devices.
|
||||||
if pgrep -f "sanderling.*sidecar.jar" >/dev/null 2>&1; then
|
if pgrep -f "sanderling.*sidecar.jar" >/dev/null 2>&1; then
|
||||||
|
|||||||
Reference in new issue
Block a user