Commit 12e723fb authored by Fred Drake's avatar Fred Drake

parent 1d88685b
...@@ -122,6 +122,7 @@ def main(): ...@@ -122,6 +122,7 @@ def main():
if not args: if not args:
prefix = os.path.join("test", "test*.") prefix = os.path.join("test", "test*.")
args = glob.glob(prefix + "xml") + glob.glob(prefix + "html") args = glob.glob(prefix + "xml") + glob.glob(prefix + "html")
errors = 0
for arg in args: for arg in args:
print arg, print arg,
sys.stdout.flush() sys.stdout.flush()
...@@ -153,8 +154,11 @@ def main(): ...@@ -153,8 +154,11 @@ def main():
print "OK" print "OK"
else: else:
print "not OK" print "not OK"
errors = 1
if expected is not None: if expected is not None:
showdiff(expected, actual) showdiff(expected, actual)
if errors:
sys.exit(1)
def readlines(f): def readlines(f):
L = [] L = []
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment