For multilayer files it was only comparing the first pass, so any issues with other passes would be missed. Also don't clear the filename for multilayer file output nodes, as that doesn't work when there are multiple such nodes all writing to the same file name. This will be used in an upcoming EXR multipart writing test. Ref #146650 Pull Request: https://projects.blender.org/blender/blender/pulls/146726