Guard small single-file staging

This commit is contained in:
2026-06-13 09:16:07 +08:00
parent be9fd7e17a
commit a6baa14ddf
3 changed files with 56 additions and 37 deletions

View File

@@ -7101,12 +7101,7 @@
if (g33_1NgcFiles.length !== 1 || new Set(g33_1NgcFiles).size !== g33_1NgcFiles.length) {
throw new Error("browser_interp_g33_1_fixture_coverage: list drift");
}
const g33_1StagedNgcFiles = [
g33_1Path,
].map((path) => path.replace("/work/browser-interp/g33.1/", ""));
if (g33_1StagedNgcFiles.join(",") !== g33_1NgcFiles.join(",")) {
throw new Error("browser_interp_g33_1_staging_manifest: list drift");
}
assertInterpRegressionFileStaging("g33.1", "g33.1.ngc", g33_1Path);
verifyExpectedOutput(
"browser_interp_g33_1",
interp.runFile(g33_1Path),
@@ -7198,12 +7193,7 @@
if (g6164NgcFiles.length !== 1 || new Set(g6164NgcFiles).size !== g6164NgcFiles.length) {
throw new Error("browser_interp_g6164_fixture_coverage: list drift");
}
const g6164StagedNgcFiles = [
g6164Path,
].map((path) => path.replace("/work/browser-interp/g6164/", ""));
if (g6164StagedNgcFiles.join(",") !== g6164NgcFiles.join(",")) {
throw new Error("browser_interp_g6164_staging_manifest: list drift");
}
assertInterpRegressionFileStaging("g6164", "test.ngc", g6164Path);
verifyExpectedOutput(
"browser_interp_g6164",
interp.runFile(g6164Path),
@@ -8578,12 +8568,11 @@
if (g52RegressionFiles.length !== 1 || new Set(g52RegressionFiles).size !== g52RegressionFiles.length) {
throw new Error("browser_interp_g52_fixture_coverage: list drift");
}
const g52StagedNgcFiles = [
assertInterpRegressionFileStaging(
"g52/g52-g92-interaction",
"g52-g92-interaction.ngc",
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),