Forgive "SHORT or LONG" tags. Add test code.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from system_tests import CaseMeta, CopyTmpFiles, path
|
||||
@CopyTmpFiles("$data_path/Stonehenge.exv")
|
||||
|
||||
class test_exifprint_lint(metaclass=CaseMeta):
|
||||
url = "https://github.com/Exiv2/exiv2/pull/1738"
|
||||
filename = path("$tmp_path/Stonehenge.exv")
|
||||
commands = [ "$exifprint --lint $filename"
|
||||
, "$exiv2 -M'set Exif.Image.ImageDescription Short 3' $filename"
|
||||
, "$exifprint --lint $filename"
|
||||
]
|
||||
stderr = ["""Exif.Nikon3.ExposureTuning type Undefined (7) expected Short (3)
|
||||
""","","""Exif.Image.ImageDescription type Short (3) expected Ascii (2)
|
||||
Exif.Nikon3.ExposureTuning type Undefined (7) expected Short (3)
|
||||
"""
|
||||
]
|
||||
stdout = [""]*len(commands)
|
||||
retval = [2,0,2]
|
||||
Reference in New Issue
Block a user