Guard remap generated file staging
This commit is contained in:
@@ -4658,6 +4658,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
function assertRemapRegressionGeneratedFileStaging(name, filename, wasmPath) {
|
||||
if (wasmPath !== `/work/browser-remap/${name}/${filename}`) {
|
||||
throw new Error(`browser_remap_${name}_${filename}_generated_staging: path drift`);
|
||||
}
|
||||
}
|
||||
|
||||
function assertRemapRegressionUnstagedOverlap(name, files, expectedUnstagedFiles) {
|
||||
if (expectedUnstagedFiles.some((file) => files.includes(file))) {
|
||||
throw new Error(`browser_remap_${name}_unstaged_fixture_overlap: list drift`);
|
||||
@@ -6332,9 +6338,7 @@
|
||||
const remapIoDir = await writeRemapRegressionFiles(interp, "remap-io", remapIoFiles);
|
||||
assertRemapRegressionFilesStaging("remap-io", remapIoFiles, remapIoDir);
|
||||
const remapIoGeneratedToolTablePath = `${remapIoDir}/simpockets.tbl`;
|
||||
if (remapIoGeneratedToolTablePath !== "/work/browser-remap/remap-io/simpockets.tbl") {
|
||||
throw new Error("browser_remap_remap_io_generated_tool_table_staging: path drift");
|
||||
}
|
||||
assertRemapRegressionGeneratedFileStaging("remap-io", "simpockets.tbl", remapIoGeneratedToolTablePath);
|
||||
interp.writeTextFile(remapIoGeneratedToolTablePath, "T2 P2 Z0 ;remap-io tool\n");
|
||||
verifyExpectedOutput(
|
||||
"browser_remap_io_ngc_mdi",
|
||||
|
||||
Reference in New Issue
Block a user