diff tests/hghave.py @ 47586:a8e33ab50c4f

run-tests: use more explicit signaling for `chg` Using a dedicated variable is clearer and less fragile. It cannot hurt. Differential Revision: https://phab.mercurial-scm.org/D11051
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 10 Jul 2021 01:58:34 +0200
parents 26127236b229
children 94158c541c74
line wrap: on
line diff
--- a/tests/hghave.py	Sat Jul 10 01:57:35 2021 +0200
+++ b/tests/hghave.py	Sat Jul 10 01:58:34 2021 +0200
@@ -191,7 +191,7 @@
 
 @check("chg", "running with chg")
 def has_chg():
-    return 'CHGHG' in os.environ
+    return 'CHG_INSTALLED_AS_HG' in os.environ
 
 
 @check("rhg", "running with rhg as 'hg'")