Guard g52 staging path

This commit is contained in:
2026-06-13 07:02:00 +08:00
parent bf17469f6f
commit 17df47d68d
3 changed files with 111 additions and 0 deletions

View File

@@ -8295,6 +8295,18 @@
"g52/g52-g92-interaction",
"g52-g92-interaction.ngc",
);
const g52RegressionFiles = [
"g52-g92-interaction/g52-g92-interaction.ngc",
];
if (g52RegressionFiles.length !== 1 || new Set(g52RegressionFiles).size !== g52RegressionFiles.length) {
throw new Error("browser_interp_g52_fixture_coverage: list drift");
}
const g52StagedNgcFiles = [
g52G92InteractionPath,
].map((path) => path.replace("/work/browser-interp/g52/", ""));
if (g52StagedNgcFiles.join(",") !== g52RegressionFiles.join(",")) {
throw new Error("browser_interp_g52_staging_manifest: list drift");
}
verifyExpectedOutput(
"browser_interp_g52_g92_interaction",
interp.runFile(g52G92InteractionPath),

View File

@@ -3184,6 +3184,21 @@ const g52G92InteractionPath = writeInterpRegressionFile(
"g52/g52-g92-interaction",
"g52-g92-interaction.ngc",
);
const g52RegressionFiles = [
"g52-g92-interaction/g52-g92-interaction.ngc",
];
assert.deepEqual(
g52RegressionFiles,
interpRegressionNgcFilesRecursive("g52"),
"interp g52 fixture coverage drift",
);
assert.deepEqual(
[
g52G92InteractionPath,
],
g52RegressionFiles.map((file) => `/work/interp/g52/${file}`),
"interp g52 staging manifest drift",
);
const g52G92InteractionRun = runWithCapturedPrints(() =>
interp.runFile(g52G92InteractionPath),
);