Skip to content

Commit 40e2421

Browse files
author
Seth Schoen
committed
fix logic bug in trivial-validate when rule fails XML validate
1 parent f72f63f commit 40e2421

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/trivial-validate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def nomes_all(where=sys.argv[1:]):
211211
continue
212212
failure = 1
213213
sys.stdout.write("%s failed XML validity: %s\n" % (fi, oops))
214-
if not tree.xpath("/ruleset"):
214+
if failure or not tree.xpath("/ruleset"):
215215
continue
216216
if not test_ruleset_name(tree):
217217
failure = 1

0 commit comments

Comments
 (0)