Guard g76 staging paths

This commit is contained in:
2026-06-13 07:52:45 +08:00
parent b2b3735de1
commit 03a994edca
3 changed files with 68 additions and 3 deletions

View File

@@ -7269,10 +7269,18 @@
);
}
const g76Dir = await writeInterpRegressionFiles(interp, "g76", [
const g76Files = [
"g76only.ngc",
"test.tbl",
]);
];
if (g76Files.length !== 2 || new Set(g76Files).size !== g76Files.length) {
throw new Error("browser_interp_g76_fixture_coverage: list drift");
}
const g76Dir = await writeInterpRegressionFiles(interp, "g76", g76Files);
const g76StagedRelativeFiles = g76Files.map((file) => `${g76Dir}/${file}`.replace("/work/browser-interp/g76/", ""));
if (g76StagedRelativeFiles.join(",") !== g76Files.join(",")) {
throw new Error("browser_interp_g76_staging_manifest: list drift");
}
interp.writeTextFile(
`${g76Dir}/test.ini`,
[