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.
exiv2/tests/bash_tests/test_exifprint_lint.py

20 lines
821 B
Python

# -*- 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]