test(doctor): isolate unavailable manager runtime directory

Keep service inspection diagnostics in the fixture runtime directory so Linux CI cannot reach the runner user manager through its private socket. Preserve the unavailable-bus and access-denied assertions.
This commit is contained in:
Peter Steinberger
2026-09-12 19:46:29 -07:00
parent b69e1bc286
commit 25e675a6d7
@@ -81,7 +81,6 @@ it.each([
"OPENCLAW_SERVICE_KIND",
"OPENCLAW_LAUNCHD_LABEL",
"OPENCLAW_SYSTEMD_UNIT",
"XDG_RUNTIME_DIR",
"DBUS_SESSION_BUS_ADDRESS",
"SUDO_USER",
]) {
@@ -89,6 +88,7 @@ it.each([
}
vi.stubEnv("HOME", home);
vi.stubEnv("USERPROFILE", home);
vi.stubEnv("XDG_RUNTIME_DIR", path.join(home, "runtime"));
vi.stubEnv("USER", "svc");
if (scenario.platform === "linux") {
const unitDir = path.join(home, ".config/systemd/user");