From 070529d52a7db2b2f7f29155502b397f4c572de3 Mon Sep 17 00:00:00 2001 From: jak1 Date: Sat, 25 Jun 2022 20:34:43 +0000 Subject: fix: variants can be equal added: variant|s count --- CI/testxml/testxml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CI/testxml') 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) \ -- cgit v1.2.3-70-g09d2