Guard g72 staging paths

This commit is contained in:
2026-06-13 07:40:53 +08:00
parent a4ce6dc3c6
commit dcd7d789b3
3 changed files with 63 additions and 4 deletions

View File

@@ -7144,7 +7144,7 @@
].join("\n"),
);
for (const g72Fixture of [
const g72Fixtures = [
{
name: "facing",
dir: "g72-facing",
@@ -7157,8 +7157,16 @@
file: "g72-iterations-missing.ngc",
finalZ: "-40",
},
]) {
];
if (g72Fixtures.length !== 2 || new Set(g72Fixtures.map((fixture) => `${fixture.dir}/${fixture.file}`)).size !== g72Fixtures.length) {
throw new Error("browser_interp_g72_fixture_coverage: list drift");
}
for (const g72Fixture of g72Fixtures) {
const g72Path = await writeInterpRegressionFile(interp, g72Fixture.dir, g72Fixture.file);
const g72StagedRelativeNgcFile = g72Path.replace("/work/browser-interp/", "");
if (g72StagedRelativeNgcFile !== `${g72Fixture.dir}/${g72Fixture.file}`) {
throw new Error(`browser_interp_g72_${g72Fixture.name}_staging_manifest: list drift`);
}
verifyExpectedOutput(
`browser_interp_g72_${g72Fixture.name}`,
interp.runFile(g72Path),