Skip to content

Commit 2e2dd88

Browse files
Use \" instead of ' for exiv2 command string
The original failed on some Windows test runs.
1 parent da3b36f commit 2e2dd88

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed
Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
# -*- coding: utf-8 -*-
2-
3-
import system_tests
4-
from system_tests import CaseMeta, path
5-
6-
class TestXmpDateTimeSetting(metaclass=CaseMeta):
7-
"""
8-
Test fix for issue 1998.
9-
"""
10-
11-
infile = path("$data_path/issue_1998.xmp")
12-
commands = [
13-
"$exiv2 -M'set Xmp.xmp.CreateDate XmpText 2021-02-03T12:00:00+01:00' $infile",
14-
"$exiv2 -K Xmp.xmp.CreateDate $infile",
15-
"$exiv2 -M'set Xmp.xmp.CreateDate XmpText 2021-02-03T12:34:56+02:00' $infile",
16-
"$exiv2 -K Xmp.xmp.CreateDate $infile",
17-
]
18-
stdout = [
19-
"""""",
20-
"""Xmp.xmp.CreateDate XmpText 25 2021-02-03T12:00:00+01:00
21-
""",
22-
"""""",
23-
"""Xmp.xmp.CreateDate XmpText 25 2021-02-03T12:34:56+02:00
24-
""",
25-
]
26-
stderr = [""]*4
27-
retval = [0]*4
28-
1+
# -*- coding: utf-8 -*-
2+
3+
import system_tests
4+
from system_tests import CaseMeta, path
5+
6+
class TestXmpDateTimeSetting(metaclass=CaseMeta):
7+
"""
8+
Test fix for issue 1998.
9+
"""
10+
11+
infile = path("$data_path/issue_1998.xmp")
12+
commands = [
13+
"$exiv2 -M\"set Xmp.xmp.CreateDate XmpText 2021-02-03T12:00:00+01:00\" $infile",
14+
"$exiv2 -K Xmp.xmp.CreateDate $infile",
15+
"$exiv2 -M\"set Xmp.xmp.CreateDate XmpText 2021-02-03T12:34:56+02:00\" $infile",
16+
"$exiv2 -K Xmp.xmp.CreateDate $infile",
17+
]
18+
stdout = [
19+
"",
20+
"""Xmp.xmp.CreateDate XmpText 25 2021-02-03T12:00:00+01:00
21+
""",
22+
"",
23+
"""Xmp.xmp.CreateDate XmpText 25 2021-02-03T12:34:56+02:00
24+
""",
25+
]
26+
stderr = [""]*4
27+
retval = [0]*4
28+

0 commit comments

Comments
 (0)