changeset 14037:4ab1e987941b

run-tests: don't count test as succeeded if it failed regressed around ec4ae5727f07
author Idan Kamara <idankk86@gmail.com>
date Fri, 29 Apr 2011 20:29:22 +0300
parents 90d997a812dc
children 0e6f622f31ca
files tests/run-tests.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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()