Guard early direct-file staging
This commit is contained in:
@@ -6346,11 +6346,17 @@
|
||||
].join("\n"),
|
||||
);
|
||||
|
||||
const doWhileBreakPath = await writeInterpRegressionFile(
|
||||
const doWhileBreakNgcFiles = [
|
||||
"bug.ngc",
|
||||
"test.ngc",
|
||||
];
|
||||
const doWhileBreakDir = await writeInterpRegressionFiles(
|
||||
interp,
|
||||
"do-while-break",
|
||||
"test.ngc",
|
||||
doWhileBreakNgcFiles,
|
||||
);
|
||||
assertInterpRegressionStaging("do-while-break", doWhileBreakNgcFiles, doWhileBreakDir);
|
||||
const doWhileBreakPath = `${doWhileBreakDir}/test.ngc`;
|
||||
verifyExpectedOutput(
|
||||
"browser_interp_do_while_break",
|
||||
interp.runFile(doWhileBreakPath),
|
||||
@@ -6369,25 +6375,7 @@
|
||||
].join("\n"),
|
||||
);
|
||||
|
||||
const doWhileBreakBugPath = await writeInterpRegressionFile(
|
||||
interp,
|
||||
"do-while-break",
|
||||
"bug.ngc",
|
||||
);
|
||||
const doWhileBreakNgcFiles = [
|
||||
"bug.ngc",
|
||||
"test.ngc",
|
||||
];
|
||||
if (doWhileBreakNgcFiles.length !== 2 || new Set(doWhileBreakNgcFiles).size !== doWhileBreakNgcFiles.length) {
|
||||
throw new Error("browser_interp_do_while_break_fixture_coverage: list drift");
|
||||
}
|
||||
const doWhileBreakStagedNgcFiles = [
|
||||
doWhileBreakBugPath,
|
||||
doWhileBreakPath,
|
||||
].map((path) => path.replace("/work/browser-interp/do-while-break/", ""));
|
||||
if (doWhileBreakStagedNgcFiles.join(",") !== doWhileBreakNgcFiles.join(",")) {
|
||||
throw new Error("browser_interp_do_while_break_staging_manifest: list drift");
|
||||
}
|
||||
const doWhileBreakBugPath = `${doWhileBreakDir}/bug.ngc`;
|
||||
verifyExpectedOutput(
|
||||
"browser_interp_do_while_break_bug",
|
||||
interp.runFile(doWhileBreakBugPath),
|
||||
@@ -6413,12 +6401,7 @@
|
||||
if (owordBug315NgcFiles.length !== 1 || new Set(owordBug315NgcFiles).size !== owordBug315NgcFiles.length) {
|
||||
throw new Error("browser_interp_oword_bug315_fixture_coverage: list drift");
|
||||
}
|
||||
const owordBug315StagedNgcFiles = [
|
||||
owordBug315Path,
|
||||
].map((path) => path.replace("/work/browser-interp/oword-bug315/", ""));
|
||||
if (owordBug315StagedNgcFiles.join(",") !== owordBug315NgcFiles.join(",")) {
|
||||
throw new Error("browser_interp_oword_bug315_staging_manifest: list drift");
|
||||
}
|
||||
assertInterpRegressionFileStaging("oword-bug315", "test.ngc", owordBug315Path);
|
||||
verifyExpectedOutput(
|
||||
"browser_interp_oword_bug315",
|
||||
interp.runFile(owordBug315Path),
|
||||
@@ -6444,12 +6427,7 @@
|
||||
if (owordBug315P2NgcFiles.length !== 1 || new Set(owordBug315P2NgcFiles).size !== owordBug315P2NgcFiles.length) {
|
||||
throw new Error("browser_interp_oword_bug315_p2_fixture_coverage: list drift");
|
||||
}
|
||||
const owordBug315P2StagedNgcFiles = [
|
||||
owordBug315P2Path,
|
||||
].map((path) => path.replace("/work/browser-interp/oword-bug315-p2/", ""));
|
||||
if (owordBug315P2StagedNgcFiles.join(",") !== owordBug315P2NgcFiles.join(",")) {
|
||||
throw new Error("browser_interp_oword_bug315_p2_staging_manifest: list drift");
|
||||
}
|
||||
assertInterpRegressionFileStaging("oword-bug315-p2", "test.ngc", owordBug315P2Path);
|
||||
verifyExpectedOutput(
|
||||
"browser_interp_oword_bug315_p2",
|
||||
interp.runFile(owordBug315P2Path),
|
||||
@@ -6471,12 +6449,7 @@
|
||||
if (existsNgcFiles.length !== 1 || new Set(existsNgcFiles).size !== existsNgcFiles.length) {
|
||||
throw new Error("browser_interp_exists_fixture_coverage: list drift");
|
||||
}
|
||||
const existsStagedNgcFiles = [
|
||||
existsPath,
|
||||
].map((path) => path.replace("/work/browser-interp/exists/", ""));
|
||||
if (existsStagedNgcFiles.join(",") !== existsNgcFiles.join(",")) {
|
||||
throw new Error("browser_interp_exists_staging_manifest: list drift");
|
||||
}
|
||||
assertInterpRegressionFileStaging("exists", "test.ngc", existsPath);
|
||||
verifyExpectedOutput(
|
||||
"browser_interp_exists",
|
||||
interp.runFile(existsPath),
|
||||
@@ -6502,12 +6475,7 @@
|
||||
if (returnValueNgcFiles.length !== 1 || new Set(returnValueNgcFiles).size !== returnValueNgcFiles.length) {
|
||||
throw new Error("browser_interp_return_value_fixture_coverage: list drift");
|
||||
}
|
||||
const returnValueStagedNgcFiles = [
|
||||
returnValuePath,
|
||||
].map((path) => path.replace("/work/browser-interp/return-value/", ""));
|
||||
if (returnValueStagedNgcFiles.join(",") !== returnValueNgcFiles.join(",")) {
|
||||
throw new Error("browser_interp_return_value_staging_manifest: list drift");
|
||||
}
|
||||
assertInterpRegressionFileStaging("return-value", "test.ngc", returnValuePath);
|
||||
verifyExpectedOutput(
|
||||
"browser_interp_return_value",
|
||||
interp.runFile(returnValuePath),
|
||||
|
||||
Reference in New Issue
Block a user