test: cover exec safe bin warning text · openclaw/openclaw@50a9f9a
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
File tree
src/commands/doctor/shared
| Original file line number | Diff line number | Diff line change |
|---|
@@ -56,9 +56,9 @@ describe("doctor exec safe bin helpers", () => {
|
56 | 56 | }); |
57 | 57 | |
58 | 58 | expect(warnings).toEqual([ |
59 | | -expect.stringContaining("tools.exec.safeBins includes interpreter/runtime 'node'"), |
60 | | -expect.stringContaining("agents.list.runner.tools.exec.safeBins includes 'jq'"), |
61 | | -expect.stringContaining('Run "openclaw doctor --fix"'), |
| 59 | +"- tools.exec.safeBins includes interpreter/runtime 'node' without profile.", |
| 60 | +"- agents.list.runner.tools.exec.safeBins includes 'jq': jq supports broad jq programs and builtins (for example `env`), so prefer explicit allowlist entries or approval-gated runs instead of safeBins.", |
| 61 | +'- Run "openclaw doctor --fix" to scaffold missing custom safeBinProfiles entries.', |
62 | 62 | ]); |
63 | 63 | }); |
64 | 64 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。