tests/run-tests.py
changeset 23728 31d3f973d079
parent 23388 42ed0780ec4b
child 23859 661b246bf1c4
equal deleted inserted replaced
23727:987ef74d8d01 23728:31d3f973d079
   625         """
   625         """
   626         r = [
   626         r = [
   627             (r':%s\b' % self._startport, ':$HGPORT'),
   627             (r':%s\b' % self._startport, ':$HGPORT'),
   628             (r':%s\b' % (self._startport + 1), ':$HGPORT1'),
   628             (r':%s\b' % (self._startport + 1), ':$HGPORT1'),
   629             (r':%s\b' % (self._startport + 2), ':$HGPORT2'),
   629             (r':%s\b' % (self._startport + 2), ':$HGPORT2'),
       
   630             (r'(?m)^(saved backup bundle to .*\.hg)( \(glob\))?$',
       
   631              r'\1 (glob)'),
   630             ]
   632             ]
   631 
   633 
   632         if os.name == 'nt':
   634         if os.name == 'nt':
   633             r.append(
   635             r.append(
   634                 (''.join(c.isalpha() and '[%s%s]' % (c.lower(), c.upper()) or
   636                 (''.join(c.isalpha() and '[%s%s]' % (c.lower(), c.upper()) or
  1023             if el == l or os.name == 'nt' and el[:-1] + '\r\n' == l:
  1025             if el == l or os.name == 'nt' and el[:-1] + '\r\n' == l:
  1024                 return True
  1026                 return True
  1025             if el.endswith(" (re)\n"):
  1027             if el.endswith(" (re)\n"):
  1026                 return TTest.rematch(el[:-6], l)
  1028                 return TTest.rematch(el[:-6], l)
  1027             if el.endswith(" (glob)\n"):
  1029             if el.endswith(" (glob)\n"):
       
  1030                 # ignore '(glob)' added to l by 'replacements'
       
  1031                 if l.endswith(" (glob)\n"):
       
  1032                     l = l[:-8] + "\n"
  1028                 return TTest.globmatch(el[:-8], l)
  1033                 return TTest.globmatch(el[:-8], l)
  1029             if os.altsep and l.replace('\\', '/') == el:
  1034             if os.altsep and l.replace('\\', '/') == el:
  1030                 return '+glob'
  1035                 return '+glob'
  1031         return False
  1036         return False
  1032 
  1037