comparison tests/run-tests.py @ 37741:700aaa19de63

tests: fix up a couple of minor bytes inconsistencies in run-tests.py Only in the automatic bisection code, so fortunately nothing major is amiss. Fixes test-run-tests.t under Python 3. Differential Revision: https://phab.mercurial-scm.org/D3350
author Augie Fackler <augie@google.com>
date Fri, 13 Apr 2018 21:53:07 -0400
parents 4e6a6d0dccee
children 507bdc40bb17
comparison
equal deleted inserted replaced
37740:1b71a397d6b2 37741:700aaa19de63
2213 if m is None: 2213 if m is None:
2214 self.stream.writeln( 2214 self.stream.writeln(
2215 'Failed to identify failure point for %s' % test) 2215 'Failed to identify failure point for %s' % test)
2216 continue 2216 continue
2217 dat = m.groupdict() 2217 dat = m.groupdict()
2218 verb = 'broken' if dat['goodbad'] == 'bad' else 'fixed' 2218 verb = 'broken' if dat['goodbad'] == b'bad' else 'fixed'
2219 self.stream.writeln( 2219 self.stream.writeln(
2220 '%s %s by %s (%s)' % ( 2220 '%s %s by %s (%s)' % (
2221 test, verb, dat['node'], dat['summary'])) 2221 test, verb, dat['node'].decode('ascii'),
2222 dat['summary'].decode('utf8', 'ignore')))
2222 2223
2223 def printtimes(self, times): 2224 def printtimes(self, times):
2224 # iolock held by run 2225 # iolock held by run
2225 self.stream.writeln('# Producing time report') 2226 self.stream.writeln('# Producing time report')
2226 times.sort(key=lambda t: (t[3])) 2227 times.sort(key=lambda t: (t[3]))