mirror of
https://github.com/openclaw/openclaw.git
synced 2026-09-28 05:54:09 +08:00
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user