run-tests: don't count test as succeeded if it failed
authorIdan Kamara <idankk86@gmail.com>
Fri, 29 Apr 2011 20:29:22 +0300
changeset 14037 4ab1e987941b
parent 14036 90d997a812dc
child 14038 0e6f622f31ca
run-tests: don't count test as succeeded if it failed regressed around ec4ae5727f07
tests/run-tests.py
--- a/tests/run-tests.py	Sun Apr 24 20:11:05 2011 +0200
+++ 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()