summaryrefslogtreecommitdiff
path: root/CI/testxml/testxml.py
diff options
context:
space:
mode:
authorjak1 <jak1@themanaworld.org>2022-06-25 20:34:43 +0000
committerjak1 <jak1@themanaworld.org>2022-06-25 20:34:43 +0000
commit070529d52a7db2b2f7f29155502b397f4c572de3 (patch)
treefa9c046bae8f1344dcf6add93909bd2239033f31 /CI/testxml/testxml.py
parente0157cc49548a3b8edd038b9617ed9d4883547a2 (diff)
downloadtools-070529d52a7db2b2f7f29155502b397f4c572de3.tar.gz
tools-070529d52a7db2b2f7f29155502b397f4c572de3.tar.bz2
tools-070529d52a7db2b2f7f29155502b397f4c572de3.tar.xz
tools-070529d52a7db2b2f7f29155502b397f4c572de3.zip
fix: variants can be equalHEADmaster
added: variant|s count
Diffstat (limited to 'CI/testxml/testxml.py')
-rwxr-xr-xCI/testxml/testxml.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/CI/testxml/testxml.py b/CI/testxml/testxml.py
index 5d28c84..1ba7ff0 100755
--- a/CI/testxml/testxml.py
+++ b/CI/testxml/testxml.py
@@ -564,8 +564,8 @@ def testSpriteFile(id, fullPath, file, fileLoc, dnum, variant, checkAction, iser
num = (s1 / int(width)) * (s2 / int(height))
if variants == 0 and variant > 0:
showMsgSprite(fileLoc, "missing variants attribute in sprite", iserr)
- if variants > 0 and variant >= variants:
- showMsgSprite(fileLoc, "variant number more then in variants attribute", iserr)
+ if variants > 0 and variant > variants:
+ showMsgSprite(fileLoc, "variant number(" + str(variant) + ") more then in variants attribute(" + str(variants) + ")", iserr)
if variant > 0 and variant >= num:
showMsgSprite(fileLoc, "to big variant number " + str(variant) \