From 84dbc0fdc71c00641b5a4aea29e9ecd94476e042 Mon Sep 17 00:00:00 2001 From: Jesse Merhi <79823012+jesse-merhi@users.noreply.github.com> Date: Sat, 11 Jul 2026 21:30:23 +1000 Subject: [PATCH] test: acknowledge corrupt plugin fixture source --- scripts/e2e/lib/plugin-update/corrupt-update-scenario.sh | 2 +- test/scripts/plugin-update-unchanged-docker.test.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/e2e/lib/plugin-update/corrupt-update-scenario.sh b/scripts/e2e/lib/plugin-update/corrupt-update-scenario.sh index 05d23e8b35c8..5fdb1478215a 100644 --- a/scripts/e2e/lib/plugin-update/corrupt-update-scenario.sh +++ b/scripts/e2e/lib/plugin-update/corrupt-update-scenario.sh @@ -40,7 +40,7 @@ pack_fixture_plugin "$npm_pack_dir" /tmp/demo-corrupt-plugin.tgz demo-corrupt-pl start_npm_fixture_registry "@openclaw/demo-corrupt-plugin" "0.0.1" /tmp/demo-corrupt-plugin.tgz "$npm_registry_dir" echo "Installing managed external plugin..." -node "$entry" plugins install "npm:@openclaw/demo-corrupt-plugin@0.0.1" >/tmp/openclaw-corrupt-plugin-install.log 2>&1 +node "$entry" plugins install "npm:@openclaw/demo-corrupt-plugin@0.0.1" --acknowledge-non-clawhub-install >/tmp/openclaw-corrupt-plugin-install.log 2>&1 node "$entry" plugins inspect demo-corrupt-plugin --runtime --json >/tmp/openclaw-corrupt-plugin-before.json unset NPM_CONFIG_REGISTRY npm_config_registry diff --git a/test/scripts/plugin-update-unchanged-docker.test.ts b/test/scripts/plugin-update-unchanged-docker.test.ts index c045bf77f8cf..c83414b072cf 100644 --- a/test/scripts/plugin-update-unchanged-docker.test.ts +++ b/test/scripts/plugin-update-unchanged-docker.test.ts @@ -200,6 +200,9 @@ describe("plugin update unchanged Docker E2E", () => { it("bounds corrupt plugin update commands and prints diagnostics on hangs", () => { const script = readFileSync(CORRUPT_UPDATE_SCENARIO_SCRIPT, "utf8"); + expect(script).toContain( + 'plugins install "npm:@openclaw/demo-corrupt-plugin@0.0.1" --acknowledge-non-clawhub-install', + ); expect(script).toContain("OPENCLAW_UPDATE_CORRUPT_PLUGIN_TIMEOUT_SECONDS"); expect(script).toContain( "openclaw_e2e_read_positive_int_env OPENCLAW_UPDATE_CORRUPT_PLUGIN_TIMEOUT_SECONDS 900",