Guard abort and m19 staging manifests
This commit is contained in:
@@ -7409,6 +7409,20 @@
|
||||
);
|
||||
|
||||
const abortHotCommentPlan = await stageInterpIniContext(interp, "abort-hot-comment");
|
||||
const abortHotCommentNgcFiles = [
|
||||
"test.ngc",
|
||||
];
|
||||
if (abortHotCommentNgcFiles.length !== 1 || new Set(abortHotCommentNgcFiles).size !== abortHotCommentNgcFiles.length) {
|
||||
throw new Error("browser_interp_abort_hot_comment_fixture_coverage: list drift");
|
||||
}
|
||||
const abortHotCommentStagedNgcFiles = abortHotCommentPlan.files
|
||||
.map((file) => file.sourceRel)
|
||||
.filter((sourceRel) => sourceRel.endsWith(".ngc"))
|
||||
.map((sourceRel) => sourceRel.replace("tests/interp/abort-hot-comment/", ""))
|
||||
.sort();
|
||||
if (abortHotCommentStagedNgcFiles.join(",") !== abortHotCommentNgcFiles.join(",")) {
|
||||
throw new Error("browser_interp_abort_hot_comment_staging_manifest: list drift");
|
||||
}
|
||||
verifyExpectedOutput(
|
||||
"browser_interp_abort_hot_comment",
|
||||
interp.runFileWithIniContinueOnError(
|
||||
@@ -7426,6 +7440,20 @@
|
||||
);
|
||||
|
||||
const m19Plan = await stageInterpIniContext(interp, "m19");
|
||||
const m19NgcFiles = [
|
||||
"test.ngc",
|
||||
];
|
||||
if (m19NgcFiles.length !== 1 || new Set(m19NgcFiles).size !== m19NgcFiles.length) {
|
||||
throw new Error("browser_interp_m19_fixture_coverage: list drift");
|
||||
}
|
||||
const m19StagedNgcFiles = m19Plan.files
|
||||
.map((file) => file.sourceRel)
|
||||
.filter((sourceRel) => sourceRel.endsWith(".ngc"))
|
||||
.map((sourceRel) => sourceRel.replace("tests/interp/m19/", ""))
|
||||
.sort();
|
||||
if (m19StagedNgcFiles.join(",") !== m19NgcFiles.join(",")) {
|
||||
throw new Error("browser_interp_m19_staging_manifest: list drift");
|
||||
}
|
||||
verifyExpectedOutput(
|
||||
"browser_interp_m19",
|
||||
interp.runFileWithIni(m19Plan.programPath, m19Plan.iniPath),
|
||||
|
||||
Reference in New Issue
Block a user