run-tests: don't count test as succeeded if it failed stable
authorIdan Kamara <idankk86@gmail.com>
Fri, 29 Apr 2011 20:29:22 +0300
branchstable
changeset 921 abb2a67ce631
parent 919 1666a4a68262
child 922 702ca6f80844
child 923 8212da2b01eb
run-tests: don't count test as succeeded if it failed regressed around ec4ae5727f07 [ original upstream message ]
tests/run-tests.py
--- a/tests/run-tests.py	Mon Apr 25 17:01:34 2011 -0500
+++ b/tests/run-tests.py	Fri Apr 29 20:29:22 2011 +0300
@@ -792,8 +792,6 @@
     vlog("# Ret was:", ret)
 
     mark = '.'
-    if ret == 0:
-        success()
 
     skipped = (ret == SKIPPED_STATUS)
 
@@ -849,6 +847,8 @@
     elif ret:
         mark = '!'
         fail("returned error code %d" % ret, ret)
+    else:
+        success()
 
     if not options.verbose:
         iolock.acquire()