tests/run-tests.py
changeset 47586 a8e33ab50c4f
parent 47585 5654323832f0
child 47588 eb611ecb435c
--- a/tests/run-tests.py	Sat Jul 10 01:57:35 2021 +0200
+++ b/tests/run-tests.py	Sat Jul 10 01:58:34 2021 +0200
@@ -3165,9 +3165,11 @@
         # set CHGHG, then replace "hg" command by "chg"
         chgbindir = self._bindir
         if self.options.chg or self.options.with_chg:
+            osenvironb[b'CHG_INSTALLED_AS_HG'] = b'1'
             osenvironb[b'CHGHG'] = real_hg
         else:
-            osenvironb.pop(b'CHGHG', None)  # drop flag for hghave
+            # drop flag for hghave
+            osenvironb.pop(b'CHG_INSTALLED_AS_HG', None)
         if self.options.chg:
             self._hgcommand = b'chg'
         elif self.options.with_chg: