exiv2/tests/bugfixes/github/test_issue_428.py
2018-09-11 09:49:59 +02:00

26 lines
690 B
Python

# -*- coding: utf-8 -*-
import system_tests
class PngReadRawProfile(metaclass=system_tests.CaseMeta):
url = "https://github.com/Exiv2/exiv2/issues/428"
filenames = [
system_tests.path("$data_path/issue_428_poc1.png"),
system_tests.path("$data_path/issue_428_poc2.png"),
system_tests.path("$data_path/issue_428_poc3.png"),
system_tests.path("$data_path/issue_428_poc4.png"),
]
commands = ["$exiv2 " + fname for fname in filenames]
stdout = [""] * len(filenames)
stderr = [
"""$exiv2_exception_message """ + fname + """:
$kerFailedToReadImageData
"""
for fname in filenames
]
retval = [1] * len(filenames)