[web] Do not copy invalid images in the Skia test image collection (flutter/engine#56102)

A recent Skia commit added a test image that is used to check handling of invalid input.  This is causing some web tests to fail because Firefox rejects the image.

(see https://skia.googlesource.com/skia.git/+/ff59ce65022d71f883b7e3be146bbd32facadaf8)
This commit is contained in:
Jason Simmons
2024-10-24 15:39:20 -07:00
committed by GitHub
parent f233f9eaf4
commit 641814ad61

View File

@@ -137,6 +137,10 @@ class CopyArtifactsStep implements PipelineStep {
));
for (final io.File imageFile in testImagesDir.listSync(recursive: true).whereType<io.File>()) {
// Skip files that are used by Skia to test handling of invalid input.
if (pathlib.basename(imageFile.path).contains('invalid')) {
continue;
}
final io.File destination = io.File(pathlib.join(
environment.webTestsArtifactsDir.path,
'test_images',