fix(test): route mac helper script owners · openclaw/openclaw@63fdc57
vincentkoc
·
2026-06-21
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -956,6 +956,7 @@ const TOOLING_SOURCE_TEST_TARGETS = new Map([
|
956 | 956 | "scripts/github/run-openclaw-cross-os-release-checks.sh", |
957 | 957 | ["test/scripts/openclaw-cross-os-release-workflow.test.ts"], |
958 | 958 | ], |
| 959 | +["scripts/lib/restart-mac-gateway.sh", ["test/scripts/restart-mac.test.ts"]], |
959 | 960 | [ |
960 | 961 | "scripts/github/security-sensitive-guard.mjs", |
961 | 962 | [ |
@@ -3109,11 +3110,15 @@ function resolveParallelsToolingTestTargets(changedPath) {
|
3109 | 3110 | if ( |
3110 | 3111 | !/^scripts\/e2e\/parallels\/[^/]+\.ts$/u.test(changedPath) && |
3111 | 3112 | !/^scripts\/e2e\/parallels-(?:linux|macos|npm-update|windows)-smoke\.sh$/u.test(changedPath) && |
3112 | | -!/^scripts\/e2e\/lib\/parallels-package\/build-info-commit\.mjs$/u.test(changedPath) |
| 3113 | +!/^scripts\/e2e\/lib\/parallels-package\/build-info-commit\.mjs$/u.test(changedPath) && |
| 3114 | +!/^scripts\/e2e\/lib\/parallels-(?:macos|package)-common\.sh$/u.test(changedPath) |
3113 | 3115 | ) { |
3114 | 3116 | return null; |
3115 | 3117 | } |
3116 | | -if (/^scripts\/e2e\/lib\/parallels-package\/build-info-commit\.mjs$/u.test(changedPath)) { |
| 3118 | +if ( |
| 3119 | +/^scripts\/e2e\/lib\/parallels-package\/build-info-commit\.mjs$/u.test(changedPath) || |
| 3120 | +/^scripts\/e2e\/lib\/parallels-(?:macos|package)-common\.sh$/u.test(changedPath) |
| 3121 | +) { |
3117 | 3122 | return ["test/scripts/parallels-lib-helpers.test.ts"]; |
3118 | 3123 | } |
3119 | 3124 | const targets = ["test/scripts/parallels-smoke-model.test.ts"]; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2299,6 +2299,8 @@ describe("scripts/test-projects changed-target routing", () => {
|
2299 | 2299 | "scripts/e2e/parallels/windows-smoke.ts", |
2300 | 2300 | "scripts/e2e/parallels-windows-smoke.sh", |
2301 | 2301 | "scripts/e2e/lib/parallels-package/build-info-commit.mjs", |
| 2302 | +"scripts/e2e/lib/parallels-macos-common.sh", |
| 2303 | +"scripts/e2e/lib/parallels-package-common.sh", |
2302 | 2304 | ]), |
2303 | 2305 | ).toEqual([ |
2304 | 2306 | { |
@@ -2315,6 +2317,25 @@ describe("scripts/test-projects changed-target routing", () => {
|
2315 | 2317 | ]); |
2316 | 2318 | }); |
2317 | 2319 | |
| 2320 | +it("routes mac restart helpers through restart-mac owner tests", () => { |
| 2321 | +expect(resolveChangedTestTargetPlan(["scripts/lib/restart-mac-gateway.sh"])).toEqual({ |
| 2322 | +mode: "targets", |
| 2323 | +targets: ["test/scripts/restart-mac.test.ts"], |
| 2324 | +}); |
| 2325 | +}); |
| 2326 | + |
| 2327 | +it("routes Parallels common shell helpers through lib helper owner tests", () => { |
| 2328 | +for (const changedPath of [ |
| 2329 | +"scripts/e2e/lib/parallels-macos-common.sh", |
| 2330 | +"scripts/e2e/lib/parallels-package-common.sh", |
| 2331 | +]) { |
| 2332 | +expect(resolveChangedTestTargetPlan([changedPath]), changedPath).toEqual({ |
| 2333 | +mode: "targets", |
| 2334 | +targets: ["test/scripts/parallels-lib-helpers.test.ts"], |
| 2335 | +}); |
| 2336 | +} |
| 2337 | +}); |
| 2338 | + |
2318 | 2339 | it("routes MCP Docker E2E script targets instead of skipping changed tests", () => { |
2319 | 2340 | const targets = [ |
2320 | 2341 | "scripts/e2e/mcp-channels-docker.sh", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。