From e3be66ddda25429f33e1380a21ae07aeb0339904 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 26 Apr 2026 02:46:01 +0100 Subject: [PATCH] test: align plugin docker smoke with install ledger --- scripts/e2e/plugins-docker.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/scripts/e2e/plugins-docker.sh b/scripts/e2e/plugins-docker.sh index 36792ac386f..d962f8785f8 100755 --- a/scripts/e2e/plugins-docker.sh +++ b/scripts/e2e/plugins-docker.sh @@ -750,11 +750,14 @@ cat > "$slash_install_dir/openclaw.plugin.json" <<'JSON' } JSON -run_gateway_chat_json \ +if ! run_gateway_chat_json \ "plugin-e2e-install" \ "/plugin install $slash_install_dir" \ /tmp/plugin-command-install.json \ - 30000 + 240000; then + cat "$gateway_log" 2>/dev/null || true + exit 1 +fi node - <<'NODE' const fs = require("node:fs"); const payload = JSON.parse(fs.readFileSync("/tmp/plugin-command-install.json", "utf8")); @@ -971,10 +974,10 @@ node - <<'NODE' const fs = require("node:fs"); const path = require("node:path"); -const configPath = path.join(process.env.HOME, ".openclaw", "openclaw.json"); -const config = JSON.parse(fs.readFileSync(configPath, "utf8")); +const indexPath = path.join(process.env.HOME, ".openclaw", "plugins", "installs.json"); +const index = JSON.parse(fs.readFileSync(indexPath, "utf8")); for (const id of ["marketplace-shortcut", "marketplace-direct"]) { - const record = config.plugins?.installs?.[id]; + const record = index.installRecords?.[id]; if (!record) throw new Error(`missing install record for ${id}`); if (record.source !== "marketplace") { throw new Error(`unexpected source for ${id}: ${record.source}`);