tests/run-tests.py
changeset 34804 149109c96904
parent 34803 d817bf1fc675
child 34842 8bce3e51b101
equal deleted inserted replaced
34803:d817bf1fc675 34804:149109c96904
  2102         bisectcmd = ['hg', 'bisect']
  2102         bisectcmd = ['hg', 'bisect']
  2103         bisectrepo = self._runner.options.bisect_repo
  2103         bisectrepo = self._runner.options.bisect_repo
  2104         if bisectrepo:
  2104         if bisectrepo:
  2105             bisectcmd.extend(['-R', os.path.abspath(bisectrepo)])
  2105             bisectcmd.extend(['-R', os.path.abspath(bisectrepo)])
  2106         def pread(args):
  2106         def pread(args):
       
  2107             env = os.environ.copy()
       
  2108             env['HGPLAIN'] = '1'
  2107             p = subprocess.Popen(args, stderr=subprocess.STDOUT,
  2109             p = subprocess.Popen(args, stderr=subprocess.STDOUT,
  2108                                  stdout=subprocess.PIPE)
  2110                                  stdout=subprocess.PIPE, env=env)
  2109             data = p.stdout.read()
  2111             data = p.stdout.read()
  2110             p.wait()
  2112             p.wait()
  2111             return data
  2113             return data
  2112         for test in tests:
  2114         for test in tests:
  2113             pread(bisectcmd + ['--reset']),
  2115             pread(bisectcmd + ['--reset']),