Fixing Windows Build Breaker (on Appveyor 2015 and 2017). Use """ string syntax on 'set Bla.Dee.Bla' commands.

This commit is contained in:
clanmills
2020-03-23 08:51:46 +00:00
parent db1be4ae8e
commit 955c22167f
+16 -15
View File
@@ -6,21 +6,22 @@ from system_tests import CaseMeta, CopyFiles, path
class test_issue_1046Test(metaclass=CaseMeta):
filename = path("$data_path/IMG_0246_copy.exv")
commands = ["$exiv2 -pt -g GPSInfo -g UserCom $filename"
,"$exiv2 -pv -g GPSInfo -g UserCom $filename"
,"$exiv2 -M'set Exif.Photo.UserComment charset=Ascii how now brown cow' $filename"
,"$exiv2 -pt -g UserComment $filename"
,"$exiv2 -pv -g UserComment $filename"
,"$exiv2 -M'set Exif.Photo.UserComment charset=Unicode \u0041\u0042' $filename"
,"$exiv2 -pt -g UserComment $filename"
,"$exiv2 -pv -g UserComment $filename"
,"$exiv2 -M'set Exif.Photo.UserComment hello world' $filename"
,"$exiv2 -pt -g UserComment $filename"
,"$exiv2 -pv -g UserComment $filename"
,"$exiv2 -M'set Exif.GPSInfo.GPSProcessingMethod charset=Unicode \u0052\u006f\u0062\u0069\u006e' $filename"
,"$exiv2 -M'set Exif.GPSInfo.GPSAreaInformation charset=Ascii area information' $filename"
,"$exiv2 -pt -g GPSPro -g GPSArea $filename"
,"$exiv2 -pv -g GPSPro -g GPSArea $filename"
# Use the """ string syntax for -M"set Bla.Dee.Bla" commands to ensure they run on Windows!
commands = [ "$exiv2 -pt -g GPSInfo -g UserCom $filename"
, "$exiv2 -pv -g GPSInfo -g UserCom $filename"
,"""$exiv2 -M"set Exif.Photo.UserComment charset=Ascii how now brown cow" $filename"""
, "$exiv2 -pt -g UserComment $filename"
, "$exiv2 -pv -g UserComment $filename"
,"""$exiv2 -M"set Exif.Photo.UserComment charset=Unicode \u0041\u0042" $filename"""
, "$exiv2 -pt -g UserComment $filename"
, "$exiv2 -pv -g UserComment $filename"
,"""$exiv2 -M"set Exif.Photo.UserComment hello world" $filename"""
, "$exiv2 -pt -g UserComment $filename"
, "$exiv2 -pv -g UserComment $filename"
,"""$exiv2 -M"set Exif.GPSInfo.GPSProcessingMethod charset=Unicode \u0052\u006f\u0062\u0069\u006e" $filename"""
,"""$exiv2 -M"set Exif.GPSInfo.GPSAreaInformation charset=Ascii area information" $filename"""
, "$exiv2 -pt -g GPSPro -g GPSArea $filename"
, "$exiv2 -pv -g GPSPro -g GPSArea $filename"
]
stdout = ["""Exif.Photo.UserComment Undefined 12 AB
Exif.GPSInfo.GPSVersionID Byte 4 2.2.0.0