From 40beeaeb1c299bf29bba1942457d043412d3493a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 22 Jan 2011 03:29:18 +0200 Subject: testxml: fix some errors. --- testxml/testxml.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'testxml/testxml.py') 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) -- cgit v1.2.3-70-g09d2