fix(scripts): reject short flag gauntlet values · openclaw/openclaw@ebb670b
vincentkoc
·
2026-06-22
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -132,8 +132,29 @@ describe("plugin gateway gauntlet helpers", () => {
|
132 | 132 | }); |
133 | 133 | |
134 | 134 | it("rejects valued flags followed by another option", () => { |
135 | | -for (const flag of ["--repo-root", "--output-dir", "--plugin", "--qa-scenario"]) { |
136 | | -expect(() => parseArgs([flag, "--skip-qa"])).toThrow(`Missing value for ${flag}`); |
| 135 | +for (const flag of [ |
| 136 | +"--repo-root", |
| 137 | +"--output-dir", |
| 138 | +"--plugin", |
| 139 | +"--shard-total", |
| 140 | +"--shard-index", |
| 141 | +"--limit", |
| 142 | +"--qa-scenario", |
| 143 | +"--qa-plugin-chunk-size", |
| 144 | +"--cpu-core-warn", |
| 145 | +"--hot-wall-warn-ms", |
| 146 | +"--max-rss-warn-mb", |
| 147 | +"--wall-anomaly-multiplier", |
| 148 | +"--rss-anomaly-multiplier", |
| 149 | +"--qa-cpu-regression-multiplier", |
| 150 | +"--qa-wall-regression-multiplier", |
| 151 | +"--command-timeout-ms", |
| 152 | +"--build-timeout-ms", |
| 153 | +"--qa-timeout-ms", |
| 154 | +]) { |
| 155 | +for (const value of ["--skip-qa", "-h"]) { |
| 156 | +expect(() => parseArgs([flag, value])).toThrow(`Missing value for ${flag}`); |
| 157 | +} |
137 | 158 | } |
138 | 159 | }); |
139 | 160 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。