test: align plugin docker smoke with install ledger · openclaw/openclaw@e3be66d
steipete
·
2026-04-26
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -750,11 +750,14 @@ cat > "$slash_install_dir/openclaw.plugin.json" <<'JSON'
|
750 | 750 | } |
751 | 751 | JSON |
752 | 752 | |
753 | | -run_gateway_chat_json \ |
| 753 | +if ! run_gateway_chat_json \ |
754 | 754 | "plugin-e2e-install" \ |
755 | 755 | "/plugin install $slash_install_dir" \ |
756 | 756 | /tmp/plugin-command-install.json \ |
757 | | - 30000 |
| 757 | + 240000; then |
| 758 | + cat "$gateway_log" 2>/dev/null || true |
| 759 | + exit 1 |
| 760 | +fi |
758 | 761 | node - <<'NODE' |
759 | 762 | const fs = require("node:fs"); |
760 | 763 | const payload = JSON.parse(fs.readFileSync("/tmp/plugin-command-install.json", "utf8")); |
@@ -971,10 +974,10 @@ node - <<'NODE'
|
971 | 974 | const fs = require("node:fs"); |
972 | 975 | const path = require("node:path"); |
973 | 976 | |
974 | | -const configPath = path.join(process.env.HOME, ".openclaw", "openclaw.json"); |
975 | | -const config = JSON.parse(fs.readFileSync(configPath, "utf8")); |
| 977 | +const indexPath = path.join(process.env.HOME, ".openclaw", "plugins", "installs.json"); |
| 978 | +const index = JSON.parse(fs.readFileSync(indexPath, "utf8")); |
976 | 979 | for (const id of ["marketplace-shortcut", "marketplace-direct"]) { |
977 | | - const record = config.plugins?.installs?.[id]; |
| 980 | + const record = index.installRecords?.[id]; |
978 | 981 | if (!record) throw new Error(`missing install record for ${id}`); |
979 | 982 | if (record.source !== "marketplace") { |
980 | 983 | throw new Error(`unexpected source for ${id}: ${record.source}`); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。