Add a test for PR 1375, checking the Olympus 17mm f/1.2 Pro lens is recognised correctly.

This commit is contained in:
Olli Lupton
2020-10-20 20:34:22 +01:00
parent eec8e8902f
commit b5c0058823
2 changed files with 14 additions and 0 deletions
Binary file not shown.
+14
View File
@@ -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]