qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject svn commit: r1563150 - /qpid/proton/trunk/tests/python/proton-test
Date Fri, 31 Jan 2014 15:40:02 GMT
Author: rhs
Date: Fri Jan 31 15:40:02 2014
New Revision: 1563150

URL: http://svn.apache.org/r1563150
Log:
PROTON-503: report exit status properly

Modified:
    qpid/proton/trunk/tests/python/proton-test

Modified: qpid/proton/trunk/tests/python/proton-test
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/tests/python/proton-test?rev=1563150&r1=1563149&r2=1563150&view=diff
==============================================================================
--- qpid/proton/trunk/tests/python/proton-test (original)
+++ qpid/proton/trunk/tests/python/proton-test Fri Jan 31 15:40:02 2014
@@ -671,12 +671,17 @@ def runthrough():
 
 limit = opts.count
 count = 0
+failures = False
 while limit == 0 or count < limit:
   count += 1
   if runthrough():
+    failures = True
     if count > 1:
       print " -- (failures after %s runthroughs)" % count
   else:
     continue
 
-sys.exit(0)
+if failures:
+  sys.exit(1)
+else:
+  sys.exit(0)



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message