diff --git a/test/data/olympus-m.zuiko-17mm-f1.2-pro.exv b/test/data/olympus-m.zuiko-17mm-f1.2-pro.exv new file mode 100644 index 00000000..85ce7e51 Binary files /dev/null and b/test/data/olympus-m.zuiko-17mm-f1.2-pro.exv differ diff --git a/tests/bugfixes/github/test_pr_1375.py b/tests/bugfixes/github/test_pr_1375.py new file mode 100644 index 00000000..e6b96dd4 --- /dev/null +++ b/tests/bugfixes/github/test_pr_1375.py @@ -0,0 +1,14 @@ +# -*- coding: utf-8 -*- + +import system_tests + +class Olympus_MZuiko_17mm_f12_Pro(metaclass=system_tests.CaseMeta): + url = "https://github.com/Exiv2/exiv2/pull/1375" + + filename = "$data_path/olympus-m.zuiko-17mm-f1.2-pro.exv" + commands = ["$exiv2 -pa -K Exif.OlympusEq.LensType $filename"] + stderr = ["""Warning: Directory OlympusCs, entry 0x0101: Strip 0 is outside of the data area; ignored. +"""] + stdout = ["""Exif.OlympusEq.LensType Byte 6 Olympus M.Zuiko Digital ED 17mm F1.2 Pro +"""] + retval = [0]