tests/run-tests.py
branchstable
changeset 47826 94158c541c74
parent 47821 83235fb50e1c
child 47829 d3f890e04525
--- a/tests/run-tests.py	Tue Aug 17 14:38:25 2021 +0200
+++ b/tests/run-tests.py	Tue Aug 17 20:48:34 2021 +0200
@@ -3241,6 +3241,10 @@
             )
             full_path = os.path.join(reporootdir, bin_path)
             self._hgcommand = full_path
+            # Affects hghave.py
+            osenvironb[b'PYOXIDIZED_INSTALLED_AS_HG'] = b'1'
+        else:
+            osenvironb.pop(b'PYOXIDIZED_INSTALLED_AS_HG', None)
 
         osenvironb[b"BINDIR"] = self._bindir
         osenvironb[b"PYTHON"] = PYTHON