summaryrefslogtreecommitdiff
path: root/testxml/testxml.py
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-04-24 13:46:37 -0300
committerJesusaves <cpntb1@ymail.com>2020-04-24 13:46:37 -0300
commit4a87519723efcd2c9f2705890dac9ead85bb36aa (patch)
tree1fee479e599cc894fd5ff0275e3287de60a5eafb /testxml/testxml.py
parent24fdefb12550ebe026af8473988d0ef4d684ce48 (diff)
downloadtools-4a87519723efcd2c9f2705890dac9ead85bb36aa.tar.gz
tools-4a87519723efcd2c9f2705890dac9ead85bb36aa.tar.bz2
tools-4a87519723efcd2c9f2705890dac9ead85bb36aa.tar.xz
tools-4a87519723efcd2c9f2705890dac9ead85bb36aa.zip
New testxml mode: stfu
Diffstat (limited to 'testxml/testxml.py')
-rwxr-xr-xtestxml/testxml.py15
1 files changed, 11 insertions, 4 deletions
diff --git a/testxml/testxml.py b/testxml/testxml.py
index 049745c..af7561c 100755
--- a/testxml/testxml.py
+++ b/testxml/testxml.py
@@ -47,6 +47,7 @@ borderSize = 14 # Required 18 # Original 14
colorsList = set()
showAll = False
silent = False
+stfu = False
herc = False
testBadCollisions = False
@@ -166,7 +167,7 @@ def enumDirs(parentDir):
else:
if filt.search(file1):
try:
- if silent == True:
+ if silent == True and not stfu:
print "Checking " + file2
minidom.parse(file2)
except xml.parsers.expat.ExpatError as err:
@@ -994,7 +995,8 @@ def testEmitters(id, file, parentNode, src):
def testItems(fileName, imgDir):
global warnings, errors, safeDye
- print "Checking " + fileName
+ if not stfu:
+ print "Checking " + fileName
try:
dom = minidom.parse(parentDir + "/" + fileName)
except Exception as err:
@@ -1245,7 +1247,8 @@ def checkSpriteName(id, name):
def testMonsters(fileName):
global warnings, errors
- print "Checking " + fileName
+ if not stfu:
+ print "Checking " + fileName
dom = minidom.parse(parentDir + "/" + fileName)
idset = set()
for node in dom.documentElement.childNodes:
@@ -1335,7 +1338,8 @@ def testSounds(id, node, type):
def testNpcs(file):
global warnings, errors
- print "Checking " + file
+ if not stfu:
+ print "Checking " + file
dom = minidom.parse(parentDir + "/" + file)
idset = set()
for node in dom.documentElement.childNodes:
@@ -2382,6 +2386,9 @@ if len(sys.argv) == 2:
showAll = True
elif sys.argv[1] == "silent":
silent = True
+ elif sys.argv[1] == "stfu":
+ silent = True
+ stfu = True
elif sys.argv[1] == "herc":
silent = True
herc = True