Mercurial > public > mercurial-scm > hg-stable
diff tests/hghave.py @ 46737:78e6700ab009
tests: Add `rhg` and `no-rhg` for #require and #if in .t files
With this we can allow some small differences in expected output
between Rust-based and Python-based code paths.
Differential Revision: https://phab.mercurial-scm.org/D10096
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Wed, 03 Mar 2021 18:00:54 +0100 |
parents | ad107ed7a4aa |
children | 41d43d12c2c4 |
line wrap: on
line diff
--- a/tests/hghave.py Tue Mar 02 22:42:10 2021 +0100 +++ b/tests/hghave.py Wed Mar 03 18:00:54 2021 +0100 @@ -188,6 +188,11 @@ return 'CHGHG' in os.environ +@check("rhg", "running with rhg as 'hg'") +def has_rhg(): + return 'RHG_INSTALLED_AS_HG' in os.environ + + @check("cvs", "cvs client/server") def has_cvs(): re = br'Concurrent Versions System.*?server'