Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tests/launcher-common.bats
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,12 @@ s.bind(sys.argv[1])
s.close()
" "$sock" 2>/dev/null || skip "Cannot create test unix socket"

# Stub pgrep so the test is isolated from host process state:
# a real cowork-vm-service daemon on the developer machine would
# trip the function's "daemon alive, leave socket alone" branch.
pgrep() { return 1; }
export -f pgrep

setup_logging
# socat connection should fail since nothing is listening
cleanup_stale_cowork_socket
Expand Down
Loading