diff tests/run-tests.py @ 48335:b7fde9237c92

rhg: Enable `rhg status` in most tests This subcommand is disabled by default because of bugs that make some test fail. Enable it in the rest of the tests in order to avoid regressing them. As with `RHG_ON_UNSUPPORTED`, an environment variable is used instead of a configuration file and `HGRCPATH` because some tests override `HGRCPATH`. Running `unset RHG_STATUS` at the start of a test restores the default of `rhg status` being disabled. Hopefully it can be increasingly removed from test files as bugs are fixed. Differential Revision: https://phab.mercurial-scm.org/D11756
author Simon Sapin <simon.sapin@octobus.net>
date Tue, 09 Nov 2021 19:55:46 +0100
parents 96aa3a68d3b5
children 29eb80d190b2
line wrap: on
line diff
--- a/tests/run-tests.py	Fri Nov 19 11:20:10 2021 +0100
+++ b/tests/run-tests.py	Tue Nov 09 19:55:46 2021 +0100
@@ -3228,6 +3228,7 @@
             # output.
             osenvironb[b'RHG_ON_UNSUPPORTED'] = b'fallback'
             osenvironb[b'RHG_FALLBACK_EXECUTABLE'] = real_hg
+            osenvironb[b'RHG_STATUS'] = b'1'
         else:
             # drop flag for hghave
             osenvironb.pop(b'RHG_INSTALLED_AS_HG', None)