Support single channel golden images.
PiperOrigin-RevId: 519158051
This commit is contained in:
parent
c26965c842
commit
53e4e92505
|
@ -214,7 +214,8 @@ absl::Status CompareAndSaveImageOutput(
|
|||
const ImageFrameComparisonOptions& options) {
|
||||
ASSIGN_OR_RETURN(auto output_img_path, SavePngTestOutput(actual, "output"));
|
||||
|
||||
auto expected = LoadTestImage(GetTestFilePath(golden_image_path));
|
||||
auto expected =
|
||||
LoadTestImage(GetTestFilePath(golden_image_path), ImageFormat::UNKNOWN);
|
||||
if (!expected.ok()) {
|
||||
return expected.status();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user