tests/run-tests.py
branchstable
changeset 921 abb2a67ce631
parent 919 1666a4a68262
child 923 8212da2b01eb
equal deleted inserted replaced
919:1666a4a68262 921:abb2a67ce631
   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()