Guard rotation direct-file staging

This commit is contained in:
2026-06-13 08:56:13 +08:00
parent e953e5184c
commit 880810e5c0
3 changed files with 51 additions and 17 deletions

View File

@@ -7396,6 +7396,7 @@
"rotation/abs-pts",
"test.ngc",
);
assertInterpRegressionFileStaging("rotation/abs-pts", "test.ngc", rotationAbsPtsPath);
const rotationRegressionFiles = [
"abs-pts/test.ngc",
"g28/g28.ngc",
@@ -7432,6 +7433,7 @@
}
const rotationG28Path = await writeInterpRegressionFile(interp, "rotation/g28", "g28.ngc");
assertInterpRegressionFileStaging("rotation/g28", "g28.ngc", rotationG28Path);
const rotationG28Output = interp.runFile(rotationG28Path);
verifyExpectedOutput(
"browser_interp_rotation_g28",
@@ -7454,14 +7456,7 @@
}
const rotationG53Path = await writeInterpRegressionFile(interp, "rotation/g53", "g53.ngc");
const rotationStagedNgcFiles = [
rotationAbsPtsPath,
rotationG28Path,
rotationG53Path,
].map((path) => path.replace("/work/browser-interp/rotation/", ""));
if (rotationStagedNgcFiles.join(",") !== rotationRegressionFiles.join(",")) {
throw new Error("browser_interp_rotation_staging_manifest: list drift");
}
assertInterpRegressionFileStaging("rotation/g53", "g53.ngc", rotationG53Path);
const rotationG53Output = interp.runFile(rotationG53Path);
verifyExpectedOutput(
"browser_interp_rotation_g53",