ci: isolate non-root install smoke cache

This commit is contained in:
Peter Steinberger
2026-04-23 21:31:01 +01:00
parent 8b9e46a099
commit 7ce36b4d12
3 changed files with 7 additions and 4 deletions

View File

@@ -95,6 +95,12 @@ describe("install-sh smoke runner", () => {
expect(script).toContain('"${NPM_CACHE_DOCKER_ARGS[@]}"');
expect(script).toContain("remove_owned_npm_cache");
expect(script).toContain('sudo -n rm -rf "$NPM_CACHE_DIR"');
expect(script).not.toMatch(
/Run installer non-root test:[\s\S]*"\$\{NPM_CACHE_DOCKER_ARGS\[@\]\}"/,
);
expect(script).not.toMatch(
/Run CLI installer non-root test[\s\S]*"\$\{NPM_CACHE_DOCKER_ARGS\[@\]\}"/,
);
expect(script).toContain("==> Run direct npm global smoke");
expect(script).toContain("OPENCLAW_INSTALL_SMOKE_MODE=npm-global");
expect(runner).toContain("run_npm_global_smoke");