You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
821 B
Python
20 lines
821 B
Python
4 years ago
|
# -*- 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"
|
||
4 years ago
|
, '$exiv2 -M"set Exif.Image.ImageDescription Short 3" $filename'
|
||
4 years ago
|
, "$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]
|