From 4e9207c21294f95b91de66cbd2e6be04be07b488 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 1 May 2026 14:41:07 +0100 Subject: [PATCH] test: quote parallels provider config json --- scripts/e2e/parallels/linux-smoke.ts | 13 +++++-------- scripts/e2e/parallels/macos-smoke.ts | 14 +++++--------- 2 files changed, 10 insertions(+), 17 deletions(-) diff --git a/scripts/e2e/parallels/linux-smoke.ts b/scripts/e2e/parallels/linux-smoke.ts index 0f49e6e8aad..cb13ec2cf6b 100755 --- a/scripts/e2e/parallels/linux-smoke.ts +++ b/scripts/e2e/parallels/linux-smoke.ts @@ -692,14 +692,11 @@ rm -rf /root/.openclaw/test-bad-plugin`); const providerId = providerIdFromModelId(this.auth.modelId) || this.options.provider; const providerTimeoutConfig = providerTimeoutConfigJson(this.auth.modelId, "linux"); if (providerTimeoutConfig) { - this.guestExec([ - "openclaw", - "config", - "set", - `models.providers.${providerId}`, - providerTimeoutConfig, - "--strict-json", - ]); + this.guestBash( + `openclaw config set ${shellQuote(`models.providers.${providerId}`)} ${shellQuote( + providerTimeoutConfig, + )} --strict-json`, + ); } this.guestExec([ "openclaw", diff --git a/scripts/e2e/parallels/macos-smoke.ts b/scripts/e2e/parallels/macos-smoke.ts index c8fde3e4605..7d8a53273b7 100755 --- a/scripts/e2e/parallels/macos-smoke.ts +++ b/scripts/e2e/parallels/macos-smoke.ts @@ -976,15 +976,11 @@ exit 1`); const providerId = providerIdFromModelId(this.auth.modelId) || this.options.provider; const providerTimeoutConfig = providerTimeoutConfigJson(this.auth.modelId, "macos"); if (providerTimeoutConfig) { - this.guestExec([ - guestNode, - guestOpenClawEntry, - "config", - "set", - `models.providers.${providerId}`, - providerTimeoutConfig, - "--strict-json", - ]); + this.guestSh( + `${shellQuote(guestNode)} ${shellQuote(guestOpenClawEntry)} config set ${shellQuote( + `models.providers.${providerId}`, + )} ${shellQuote(providerTimeoutConfig)} --strict-json`, + ); } this.guestExec([ guestNode,