tests/run-tests.py
changeset 47585 5654323832f0
parent 47584 ee1fc8f970e6
child 47586 a8e33ab50c4f
equal deleted inserted replaced
47584:ee1fc8f970e6 47585:5654323832f0
  3183             # `$HGRCPATH` but some tests override that, or changing `_hgcommand` to include
  3183             # `$HGRCPATH` but some tests override that, or changing `_hgcommand` to include
  3184             # `--config` but that disrupts tests that print command lines and check expected
  3184             # `--config` but that disrupts tests that print command lines and check expected
  3185             # output.
  3185             # output.
  3186             osenvironb[b'RHG_ON_UNSUPPORTED'] = b'fallback'
  3186             osenvironb[b'RHG_ON_UNSUPPORTED'] = b'fallback'
  3187             osenvironb[b'RHG_FALLBACK_EXECUTABLE'] = real_hg
  3187             osenvironb[b'RHG_FALLBACK_EXECUTABLE'] = real_hg
       
  3188         else:
       
  3189             # drop flag for hghave
       
  3190             osenvironb.pop(b'RHG_INSTALLED_AS_HG', None)
  3188         if self.options.rhg:
  3191         if self.options.rhg:
  3189             self._hgcommand = b'rhg'
  3192             self._hgcommand = b'rhg'
  3190         elif self.options.with_rhg:
  3193         elif self.options.with_rhg:
  3191             rhgbindir = os.path.dirname(os.path.realpath(self.options.with_rhg))
  3194             rhgbindir = os.path.dirname(os.path.realpath(self.options.with_rhg))
  3192             self._hgcommand = os.path.basename(self.options.with_rhg)
  3195             self._hgcommand = os.path.basename(self.options.with_rhg)