Guard m98m99 per-file staging paths

This commit is contained in:
2026-06-13 12:42:03 +08:00
parent 5b7f3fba8a
commit 6f95135093
3 changed files with 91 additions and 7 deletions

View File

@@ -4675,6 +4675,15 @@
}
}
function assertInterpRegressionFilesStaging(name, files, wasmDir) {
if (files.length === 0 || new Set(files).size !== files.length) {
throw new Error(`browser_interp_${name}_fixture_coverage: list drift`);
}
for (const file of files) {
assertInterpRegressionFileStaging(name, file, `${wasmDir}/${file}`);
}
}
function assertInterpIniContextNgcStaging(name, files, plan) {
const stagedNgcFiles = plan.files
.filter((file) => file.sourceRel.endsWith(".ngc"))
@@ -7897,7 +7906,7 @@
"m98m99/06-error-mixed-sub-styles",
m98m99MixedSubStyleFiles,
);
assertInterpRegressionStaging(
assertInterpRegressionFilesStaging(
"m98m99/06-error-mixed-sub-styles",
m98m99MixedSubStyleFiles,
m98m99MixedSubStyleDir,
@@ -8046,7 +8055,7 @@
"m98m99/09-disable-fanuc-subs",
m98m99DisableFanucSubsFiles,
);
assertInterpRegressionStaging(
assertInterpRegressionFilesStaging(
"m98m99/09-disable-fanuc-subs",
m98m99DisableFanucSubsFiles,
m98m99DisableFanucSubsDir,
@@ -8176,7 +8185,7 @@
"m98m99/11-main-program-oword",
m98m99MainProgramOwordFiles,
);
assertInterpRegressionStaging(
assertInterpRegressionFilesStaging(
"m98m99/11-main-program-oword",
m98m99MainProgramOwordFiles,
m98m99MainProgramOwordDir,