diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-06-13 20:39:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-06-13 20:39:24 +0300 |
commit | c85a8f20d82ef8e4bb0d4d9e153a024a5b182b94 (patch) | |
tree | 6e9fab1fc1aa44040fa4fd78cecaac557b860bf0 | |
parent | fa31d7327919b453f1aaa837bd9ec9141c4ff482 (diff) | |
download | evol-tools-c85a8f20d82ef8e4bb0d4d9e153a024a5b182b94.tar.gz evol-tools-c85a8f20d82ef8e4bb0d4d9e153a024a5b182b94.tar.bz2 evol-tools-c85a8f20d82ef8e4bb0d4d9e153a024a5b182b94.tar.xz evol-tools-c85a8f20d82ef8e4bb0d4d9e153a024a5b182b94.zip |
testxml: dont add warning in wrong directory in silent mode.
In silent mode show checked xml file names.
-rwxr-xr-x | testxml/testxml.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/testxml/testxml.py b/testxml/testxml.py index a2062d6..b5c40a1 100755 --- a/testxml/testxml.py +++ b/testxml/testxml.py @@ -150,7 +150,8 @@ def enumDirs(parentDir): files = os.listdir(parentDir) except OSError: print "Directory error: " + parentDir - warnings = warnings + 1 + if silent == False: + warnings = warnings + 1 return for file1 in files: if file1[0] == ".": @@ -161,6 +162,8 @@ def enumDirs(parentDir): else: if filt.search(file1): try: + if silent == True: + print "Checking " + file2 minidom.parse(file2) except xml.parsers.expat.ExpatError as err: print "error: " + file2 + ", line=" + str(err.lineno) + ", char=" + str(err.offset) |