Blame tests/bugfixes/github/test_issue_1180.py
|
Packit Service |
fb147c |
# -*- coding: utf-8 -*-
|
|
Packit Service |
fb147c |
|
|
Packit Service |
fb147c |
from system_tests import CaseMeta, CopyTmpFiles, path
|
|
Packit Service |
fb147c |
@CopyTmpFiles("$data_path/test_issue_1180.exv")
|
|
Packit Service |
fb147c |
|
|
Packit Service |
fb147c |
class test_issue_1180Test(metaclass=CaseMeta):
|
|
Packit Service |
fb147c |
|
|
Packit Service |
fb147c |
filename = path("$tmp_path/test_issue_1180.exv")
|
|
Packit Service |
fb147c |
dash_t = path("$tmp_path/20200424_174415.exv") # -t renames file
|
|
Packit Service |
fb147c |
dash_T = path("$tmp_path/20200424_154415.exv") # -T renames file
|
|
Packit Service |
fb147c |
commands = [ "$exiv2 -K Exif.Image.DateTime $filename"
|
|
Packit Service |
fb147c |
, "$exiv2 -t --force $filename"
|
|
Packit Service |
fb147c |
, "$exiv2 -K Exif.Image.DateTime $dash_t"
|
|
Packit Service |
fb147c |
, "$exiv2 -a -02:00 --force $dash_t"
|
|
Packit Service |
fb147c |
, "$exiv2 -K Exif.Image.DateTime $dash_t"
|
|
Packit Service |
fb147c |
, "$exiv2 -t --force $dash_t"
|
|
Packit Service |
fb147c |
, "$exiv2 -K Exif.Image.DateTime $dash_T"
|
|
Packit Service |
fb147c |
]
|
|
Packit Service |
fb147c |
stdout = ["Exif.Image.DateTime Ascii 50 2020-04-24 17:44:15 \n"
|
|
Packit Service |
fb147c |
,""
|
|
Packit Service |
fb147c |
,"Exif.Image.DateTime Ascii 50 2020-04-24 17:44:15 \n"
|
|
Packit Service |
fb147c |
,""
|
|
Packit Service |
fb147c |
,"Exif.Image.DateTime Ascii 20 2020:04:24 15:44:15\n"
|
|
Packit Service |
fb147c |
,""
|
|
Packit Service |
fb147c |
,"Exif.Image.DateTime Ascii 20 2020:04:24 15:44:15\n"
|
|
Packit Service |
fb147c |
]
|
|
Packit Service |
fb147c |
stderr = [""]*len(commands)
|
|
Packit Service |
fb147c |
retval = [ 0]*len(commands)
|