test(ci): align bun install smoke assertion · openclaw/openclaw@3c19588
steipete
·
2026-04-29
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -4,6 +4,7 @@ import { describe, expect, it } from "vitest";
|
4 | 4 | const SCRIPT_PATH = "scripts/test-install-sh-docker.sh"; |
5 | 5 | const SMOKE_RUNNER_PATH = "scripts/docker/install-sh-smoke/run.sh"; |
6 | 6 | const BUN_GLOBAL_SMOKE_PATH = "scripts/e2e/bun-global-install-smoke.sh"; |
| 7 | +const BUN_GLOBAL_ASSERTIONS_PATH = "scripts/e2e/lib/bun-global-install/assertions.mjs"; |
7 | 8 | const INSTALL_SMOKE_WORKFLOW_PATH = ".github/workflows/install-smoke.yml"; |
8 | 9 | const RELEASE_CHECKS_WORKFLOW_PATH = ".github/workflows/openclaw-release-checks.yml"; |
9 | 10 | const LIVE_E2E_WORKFLOW_PATH = ".github/workflows/openclaw-live-and-e2e-checks-reusable.yml"; |
@@ -155,11 +156,13 @@ describe("install-sh smoke runner", () => {
|
155 | 156 | describe("bun global install smoke", () => { |
156 | 157 | it("packs the current tree and verifies image-provider discovery through Bun", () => { |
157 | 158 | const script = readFileSync(BUN_GLOBAL_SMOKE_PATH, "utf8"); |
| 159 | +const assertions = readFileSync(BUN_GLOBAL_ASSERTIONS_PATH, "utf8"); |
158 | 160 | |
159 | 161 | expect(script).toContain("npm pack --ignore-scripts --json --pack-destination"); |
160 | 162 | expect(script).toContain('"$bun_path" install -g "$PACKAGE_TGZ" --no-progress'); |
161 | 163 | expect(script).toContain("infer image providers --json"); |
162 | | -expect(script).toContain("image providers output is missing bundled provider"); |
| 164 | +expect(script).toContain("assert-image-providers"); |
| 165 | +expect(assertions).toContain("image providers output is missing bundled provider"); |
163 | 166 | expect(script).toContain("OPENCLAW_BUN_GLOBAL_SMOKE_DIST_IMAGE"); |
164 | 167 | }); |
165 | 168 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。