Guard good arc direct-file staging
This commit is contained in:
@@ -7177,10 +7177,9 @@
|
||||
if (goodArcFixtures.length !== 6 || new Set(goodArcFixtures.map((fixture) => fixture.file)).size !== goodArcFixtures.length) {
|
||||
throw new Error("browser_interp_good_fixture_coverage: list drift");
|
||||
}
|
||||
const goodArcStagedNgcFiles = [];
|
||||
for (const goodArcFixture of goodArcFixtures) {
|
||||
const goodArcPath = await writeInterpRegressionFile(interp, "good", goodArcFixture.file);
|
||||
goodArcStagedNgcFiles.push(goodArcPath);
|
||||
assertInterpRegressionFileStaging("good", goodArcFixture.file, goodArcPath);
|
||||
verifyExpectedOutput(
|
||||
`browser_interp_good_arc_${goodArcFixture.name}`,
|
||||
interp.runFile(goodArcPath),
|
||||
@@ -7196,10 +7195,6 @@
|
||||
].join("\n"),
|
||||
);
|
||||
}
|
||||
const goodArcStagedRelativeNgcFiles = goodArcStagedNgcFiles.map((path) => path.replace("/work/browser-interp/good/", ""));
|
||||
if (goodArcStagedRelativeNgcFiles.join(",") !== goodArcFixtures.map((fixture) => fixture.file).join(",")) {
|
||||
throw new Error("browser_interp_good_staging_manifest: list drift");
|
||||
}
|
||||
|
||||
const g6164Path = await writeInterpRegressionFile(interp, "g6164", "test.ngc");
|
||||
const g6164NgcFiles = [
|
||||
|
||||
@@ -2148,10 +2148,9 @@ assert.deepEqual(
|
||||
interpRegressionNgcFiles("good"),
|
||||
"interp good fixture coverage drift",
|
||||
);
|
||||
const goodArcStagedNgcFiles = [];
|
||||
for (const goodArcFixture of goodArcFixtures) {
|
||||
const goodArcPath = writeInterpRegressionFile("good", goodArcFixture.file);
|
||||
goodArcStagedNgcFiles.push(goodArcPath);
|
||||
assertInterpRegressionFileStaging("good", goodArcFixture.file, goodArcPath);
|
||||
verifyExpectedOutput(
|
||||
`interp_good_arc_${goodArcFixture.name}_wasm`,
|
||||
interp.runFile(goodArcPath),
|
||||
@@ -2167,11 +2166,6 @@ for (const goodArcFixture of goodArcFixtures) {
|
||||
].join("\n"),
|
||||
);
|
||||
}
|
||||
assert.deepEqual(
|
||||
goodArcStagedNgcFiles,
|
||||
goodArcFixtures.map((fixture) => `/work/interp/good/${fixture.file}`),
|
||||
"interp good staging manifest drift",
|
||||
);
|
||||
|
||||
const g6164Path = writeInterpRegressionFile("g6164", "test.ngc");
|
||||
const g6164NgcFiles = [
|
||||
|
||||
Reference in New Issue
Block a user