[Zpt] CVS: Packages/TAL - runtest.py:1.7

fred@digiciool.com fred@digiciool.com
Wed, 14 Mar 2001 15:40:15 -0500 (EST)


Update of /cvs-repository/Packages/TAL
In directory korak:/tmp/cvs-serv23748

Modified Files:
	runtest.py 
Log Message:

If there are errors, generate a non-zero return code.



--- Updated File runtest.py in package Packages/TAL --
--- runtest.py	2001/03/14 20:06:47	1.6
+++ runtest.py	2001/03/14 20:40:15	1.7
@@ -122,6 +122,7 @@
     if not args:
         prefix = os.path.join("test", "test*.")
         args = glob.glob(prefix + "xml") + glob.glob(prefix + "html")
+    errors = 0
     for arg in args:
         print arg,
         sys.stdout.flush()
@@ -153,8 +154,11 @@
             print "OK"
         else:
             print "not OK"
+            errors = 1
             if expected is not None:
                 showdiff(expected, actual)
+    if errors:
+        sys.exit(1)
 
 def readlines(f):
     L = []