mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 11:41:26 +00:00
test: remove duplicate systemd exec-start split assertion
This commit is contained in:
@@ -161,17 +161,6 @@ describe("splitArgsPreservingQuotes", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe("parseSystemdExecStart", () => {
|
describe("parseSystemdExecStart", () => {
|
||||||
it("splits on whitespace outside quotes", () => {
|
|
||||||
const execStart = "/usr/bin/openclaw gateway start --foo bar";
|
|
||||||
expect(parseSystemdExecStart(execStart)).toEqual([
|
|
||||||
"/usr/bin/openclaw",
|
|
||||||
"gateway",
|
|
||||||
"start",
|
|
||||||
"--foo",
|
|
||||||
"bar",
|
|
||||||
]);
|
|
||||||
});
|
|
||||||
|
|
||||||
it("preserves quoted arguments", () => {
|
it("preserves quoted arguments", () => {
|
||||||
const execStart = '/usr/bin/openclaw gateway start --name "My Bot"';
|
const execStart = '/usr/bin/openclaw gateway start --name "My Bot"';
|
||||||
expect(parseSystemdExecStart(execStart)).toEqual([
|
expect(parseSystemdExecStart(execStart)).toEqual([
|
||||||
|
|||||||
Reference in New Issue
Block a user