diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-01-22 03:29:18 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-01-22 03:29:18 +0200 |
commit | 40beeaeb1c299bf29bba1942457d043412d3493a (patch) | |
tree | 642ded340265950cd51c5399766a42f7c7bbf55a /testxml/testxml.py | |
parent | a48fb1f2f20c358fd362c271ededf17d94bc4085 (diff) | |
download | evol-tools-40beeaeb1c299bf29bba1942457d043412d3493a.tar.gz evol-tools-40beeaeb1c299bf29bba1942457d043412d3493a.tar.bz2 evol-tools-40beeaeb1c299bf29bba1942457d043412d3493a.tar.xz evol-tools-40beeaeb1c299bf29bba1942457d043412d3493a.zip |
testxml: fix some errors.
Diffstat (limited to 'testxml/testxml.py')
-rwxr-xr-x | testxml/testxml.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/testxml/testxml.py b/testxml/testxml.py index be7ddaf..4f6cedb 100755 --- a/testxml/testxml.py +++ b/testxml/testxml.py @@ -927,11 +927,19 @@ def testMap(file, path): + name + ": " + file, True) if source != None: imagePath = os.path.abspath(parentDir + "/" + mapsDir + source) + + img = splitImage(imagePath) + imagePath = img[0] + imagecolor = img[1] + if not os.path.isfile(imagePath) or os.path.exists(imagePath) == False: - showMsgFile(file, "image file not exist: " + image + ", " + source + ", " + \ + showMsgFile(file, "image file not exist: " + mapsDir + source + ", " + \ name, True) continue + if imagecolor != "": + testDye("", imagecolor, source, file, True) + sz = testImageFile(file, imagePath, 0, True) width = sz[0] height = sz[1] @@ -983,7 +991,7 @@ def testMap(file, path): str(mapWidth) + ": " + name, True) if mapHeight < height: showMsgFile(file, "layer height " + str(height) + " more then map height " + \ - str(mapHeight) + ": " + name, False) + str(mapHeight) + ": " + name, True) |