mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-24 12:42:49 +00:00
ea2b9d1c1f
TestInstallSHRecoversV5ProcessArgsWithoutProcfs stubs the running agent as pid 4242 and stubs ps, but running_agent_arg_stream reads /proc/<pid>/cmdline whenever it exists and only falls back to ps when it does not. On a Linux runner where pid 4242 happened to belong to another process, recovery parsed that process's arguments and the test failed with NOT_READY (seen in Backend tests rest-1). It never failed on macOS, which has no /proc. Wrap the real function so this test always resolves against an empty proc root, which is the no-procfs host it describes. Also extract the env-stream helper it was calling without, and fail on NOT_READY directly since "READY" is a substring of it and never caught a failed recovery.