tests/run-tests.py
changeset 14037 4ab1e987941b
parent 14019 fbbd5f91d5e1
child 14062 643381286e0c
equal deleted inserted replaced
14036:90d997a812dc 14037:4ab1e987941b
   790         (r':%s\b' % (options.port + 2), ':$HGPORT2'),
   790         (r':%s\b' % (options.port + 2), ':$HGPORT2'),
   791         ])
   791         ])
   792     vlog("# Ret was:", ret)
   792     vlog("# Ret was:", ret)
   793 
   793 
   794     mark = '.'
   794     mark = '.'
   795     if ret == 0:
       
   796         success()
       
   797 
   795 
   798     skipped = (ret == SKIPPED_STATUS)
   796     skipped = (ret == SKIPPED_STATUS)
   799 
   797 
   800     # If we're not in --debug mode and reference output file exists,
   798     # If we're not in --debug mode and reference output file exists,
   801     # check test output against it.
   799     # check test output against it.
   847             fail("output changed", ret)
   845             fail("output changed", ret)
   848         ret = 1
   846         ret = 1
   849     elif ret:
   847     elif ret:
   850         mark = '!'
   848         mark = '!'
   851         fail("returned error code %d" % ret, ret)
   849         fail("returned error code %d" % ret, ret)
       
   850     else:
       
   851         success()
   852 
   852 
   853     if not options.verbose:
   853     if not options.verbose:
   854         iolock.acquire()
   854         iolock.acquire()
   855         sys.stdout.write(mark)
   855         sys.stdout.write(mark)
   856         sys.stdout.flush()
   856         sys.stdout.flush()