The lab's installer carries a builder, and genesis is told what to build
Both beds now pass a repository and a commit, and refuse to run without them rather than raising a machine the installer cannot finish.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { test } from "node:test";
|
||||
import assert from "node:assert/strict";
|
||||
import { planned, controlPlaneImage } from "../src/rebuild.ts";
|
||||
import { planned, carriedImage } from "../src/rebuild.ts";
|
||||
import { repositories } from "../src/repos.ts";
|
||||
import { loadScenario } from "../src/declaration/parse.ts";
|
||||
|
||||
@@ -61,7 +61,7 @@ test("the installer is built, carrying the image built in the same run", () => {
|
||||
|
||||
const installer = builds.find((b) => b.what === "installer")!;
|
||||
assert.equal(installer.in, "/repo/host");
|
||||
assert.ok(installer.argv.includes(`IMAGE=${controlPlaneImage({})}`), installer.argv.join(" "));
|
||||
assert.ok(installer.argv.includes(`IMAGE=${carriedImage({})}`), installer.argv.join(" "));
|
||||
assert.ok(installer.argv.includes("BOOTSTRAP_OUT=/repo/host/mesh-bootstrap"), installer.argv.join(" "));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user