From 3c19588fc5b18ae14c84da0836be9ce5e9ccbc70 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 29 Apr 2026 10:35:46 +0100 Subject: [PATCH] test(ci): align bun install smoke assertion --- test/scripts/test-install-sh-docker.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/scripts/test-install-sh-docker.test.ts b/test/scripts/test-install-sh-docker.test.ts index 1664d9f4648..3ca0a78cd7e 100644 --- a/test/scripts/test-install-sh-docker.test.ts +++ b/test/scripts/test-install-sh-docker.test.ts @@ -4,6 +4,7 @@ import { describe, expect, it } from "vitest"; const SCRIPT_PATH = "scripts/test-install-sh-docker.sh"; const SMOKE_RUNNER_PATH = "scripts/docker/install-sh-smoke/run.sh"; const BUN_GLOBAL_SMOKE_PATH = "scripts/e2e/bun-global-install-smoke.sh"; +const BUN_GLOBAL_ASSERTIONS_PATH = "scripts/e2e/lib/bun-global-install/assertions.mjs"; const INSTALL_SMOKE_WORKFLOW_PATH = ".github/workflows/install-smoke.yml"; const RELEASE_CHECKS_WORKFLOW_PATH = ".github/workflows/openclaw-release-checks.yml"; const LIVE_E2E_WORKFLOW_PATH = ".github/workflows/openclaw-live-and-e2e-checks-reusable.yml"; @@ -155,11 +156,13 @@ describe("install-sh smoke runner", () => { describe("bun global install smoke", () => { it("packs the current tree and verifies image-provider discovery through Bun", () => { const script = readFileSync(BUN_GLOBAL_SMOKE_PATH, "utf8"); + const assertions = readFileSync(BUN_GLOBAL_ASSERTIONS_PATH, "utf8"); expect(script).toContain("npm pack --ignore-scripts --json --pack-destination"); expect(script).toContain('"$bun_path" install -g "$PACKAGE_TGZ" --no-progress'); expect(script).toContain("infer image providers --json"); - expect(script).toContain("image providers output is missing bundled provider"); + expect(script).toContain("assert-image-providers"); + expect(assertions).toContain("image providers output is missing bundled provider"); expect(script).toContain("OPENCLAW_BUN_GLOBAL_SMOKE_DIST_IMAGE"); });