From 5eba76531bbd20be2c2c67bdc7449f98c8c1c697 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 27 May 2026 10:07:11 +0100 Subject: [PATCH] test(e2e): preserve macos smoke entrypoint path --- scripts/e2e/parallels/macos-smoke.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/e2e/parallels/macos-smoke.ts b/scripts/e2e/parallels/macos-smoke.ts index f99129a60f3..ced4621b82d 100755 --- a/scripts/e2e/parallels/macos-smoke.ts +++ b/scripts/e2e/parallels/macos-smoke.ts @@ -98,8 +98,6 @@ const guestPath = const guestOpenClaw = "openclaw"; const guestOpenClawEntry = '"$(npm root -g)/openclaw/openclaw.mjs"'; const guestOpenClawEntryRunner = `node ${guestOpenClawEntry}`; -const guestOpenClawEntryExecScript = - 'entry="$(npm root -g)/openclaw/openclaw.mjs"; exec node "$entry" "$@"'; const guestNode = "node"; const guestNpm = "npm"; @@ -583,9 +581,12 @@ class MacosSmoke { args: string[], options: { check?: boolean; env?: Record } = {}, ): string { - return this.guestExec( - ["/bin/sh", "-c", guestOpenClawEntryExecScript, "openclaw-entry", ...args], - options, + const argv = args.map((arg) => shellQuote(arg)).join(" "); + return this.guestSh( + `set -e +entry="$(npm root -g)/openclaw/openclaw.mjs" +exec node "$entry" ${argv}`, + options.env, ); }