Fix tests on windows by using os.path.join

This commit is contained in:
Luis Díaz Más 2018-05-20 17:10:41 +02:00 committed by Dan Čermák
parent 72faa7331d
commit 48078e9c8b
2 changed files with 6 additions and 4 deletions

View File

@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
import system_tests
import os.path
@system_tests.DeleteFiles("$xmpname")
@ -9,8 +10,8 @@ class AdobeXmpNamespace(metaclass=system_tests.CaseMeta):
url = "http://dev.exiv2.org/issues/751"
filename = "$data_path/exiv2-empty_copy.jpg"
xmpname = "$data_path/exiv2-empty_copy.xmp"
filename = os.path.join("$data_path", "exiv2-empty_copy.jpg")
xmpname = os.path.join("$data_path", "exiv2-empty_copy.xmp")
commands = [
"""$exiv2 -v -M"reg imageapp orig/" -M "set Xmp.imageapp.uuid abcd" $filename""",

View File

@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
import system_tests
import os
@system_tests.DeleteFiles("$xmpfile")
@ -10,9 +11,9 @@ class WrongXmpTypeForNestedXmpKeys(metaclass=system_tests.CaseMeta):
url = "http://dev.exiv2.org/issues/$num"
num = 799
cmdfile = "$data_path/bug$num.cmd"
cmdfile = os.path.join("$data_path", "bug$num.cmd")
filename_common = "$data_path/exiv2-empty_copy"
filename_common = os.path.join("$data_path", "exiv2-empty_copy")
filename = "$filename_common.jpg"
xmpfile = "$filename_common.xmp"