test: drop redundant daemon profile normalization wrappers

This commit is contained in:
Peter Steinberger
2026-02-16 06:36:15 +00:00
parent 6c3e7896c5
commit 1ec0f3b81d
3 changed files with 0 additions and 42 deletions

View File

@@ -199,18 +199,4 @@ describe("resolveLaunchAgentPlistPath", () => {
"/Users/test/Library/LaunchAgents/ai.openclaw.myprofile.plist",
);
});
it("handles case-insensitive 'Default' profile", () => {
const env = { HOME: "/Users/test", OPENCLAW_PROFILE: "Default" };
expect(resolveLaunchAgentPlistPath(env)).toBe(
"/Users/test/Library/LaunchAgents/ai.openclaw.gateway.plist",
);
});
it("trims whitespace from OPENCLAW_PROFILE", () => {
const env = { HOME: "/Users/test", OPENCLAW_PROFILE: " myprofile " };
expect(resolveLaunchAgentPlistPath(env)).toBe(
"/Users/test/Library/LaunchAgents/ai.openclaw.myprofile.plist",
);
});
});

View File

@@ -58,20 +58,6 @@ describe("resolveTaskScriptPath", () => {
expect(resolveTaskScriptPath(env)).toBe(path.join("C:\\State\\openclaw", "gateway.cmd"));
});
it("handles case-insensitive 'Default' profile", () => {
const env = { USERPROFILE: "C:\\Users\\test", OPENCLAW_PROFILE: "Default" };
expect(resolveTaskScriptPath(env)).toBe(
path.join("C:\\Users\\test", ".openclaw", "gateway.cmd"),
);
});
it("trims whitespace from OPENCLAW_PROFILE", () => {
const env = { USERPROFILE: "C:\\Users\\test", OPENCLAW_PROFILE: " myprofile " };
expect(resolveTaskScriptPath(env)).toBe(
path.join("C:\\Users\\test", ".openclaw-myprofile", "gateway.cmd"),
);
});
it("falls back to HOME when USERPROFILE is not set", () => {
const env = { HOME: "/home/test", OPENCLAW_PROFILE: "default" };
expect(resolveTaskScriptPath(env)).toBe(path.join("/home/test", ".openclaw", "gateway.cmd"));

View File

@@ -103,20 +103,6 @@ describe("resolveSystemdUserUnitPath", () => {
"/home/test/.config/systemd/user/custom-unit.service",
);
});
it("handles case-insensitive 'Default' profile", () => {
const env = { HOME: "/home/test", OPENCLAW_PROFILE: "Default" };
expect(resolveSystemdUserUnitPath(env)).toBe(
"/home/test/.config/systemd/user/openclaw-gateway.service",
);
});
it("trims whitespace from OPENCLAW_PROFILE", () => {
const env = { HOME: "/home/test", OPENCLAW_PROFILE: " myprofile " };
expect(resolveSystemdUserUnitPath(env)).toBe(
"/home/test/.config/systemd/user/openclaw-gateway-myprofile.service",
);
});
});
describe("splitArgsPreservingQuotes", () => {