Guard rotation staging paths

This commit is contained in:
2026-06-13 08:00:35 +08:00
parent 5f1d885d36
commit 10cae98a9e
3 changed files with 59 additions and 0 deletions

View File

@@ -7386,6 +7386,14 @@
}
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");
}
const rotationG53Output = interp.runFile(rotationG53Path);
verifyExpectedOutput(
"browser_interp_rotation_g53",