tests/run-tests.py
changeset 40988 2465e0b27a0d
parent 40947 fcdff048a8e5
child 40989 ef7119cd4965
equal deleted inserted replaced
40987:e1f759f1f691 40988:2465e0b27a0d
  2638             self._bindir = os.path.join(self._installdir, b"bin")
  2638             self._bindir = os.path.join(self._installdir, b"bin")
  2639             self._hgcommand = b'hg'
  2639             self._hgcommand = b'hg'
  2640             self._tmpbindir = self._bindir
  2640             self._tmpbindir = self._bindir
  2641             self._pythondir = os.path.join(self._installdir, b"lib", b"python")
  2641             self._pythondir = os.path.join(self._installdir, b"lib", b"python")
  2642 
  2642 
       
  2643         if os.name == 'nt' and not self._hgcommand.endswith(b'.exe'):
       
  2644             self._hgcommand += b'.exe'
       
  2645 
  2643         # set CHGHG, then replace "hg" command by "chg"
  2646         # set CHGHG, then replace "hg" command by "chg"
  2644         chgbindir = self._bindir
  2647         chgbindir = self._bindir
  2645         if self.options.chg or self.options.with_chg:
  2648         if self.options.chg or self.options.with_chg:
  2646             osenvironb[b'CHGHG'] = os.path.join(self._bindir, self._hgcommand)
  2649             osenvironb[b'CHGHG'] = os.path.join(self._bindir, self._hgcommand)
  2647         else:
  2650         else: