[PATCH V2] tests: add hghave rule 'setprocname' to check if osutil.procname and use it
Yuya Nishihara
yuya at tcha.org
Sat Jun 20 01:59:37 UTC 2020
On Fri, 19 Jun 2020 19:04:19 +0530, Pulkit Goyal wrote:
> # HG changeset patch
> # User Pulkit Goyal <7895pulkit at gmail.com>
> # Date 1592396190 -19800
> # Wed Jun 17 17:46:30 2020 +0530
> # Node ID 1bd88e1bd312b02fa3cba45fccb147f316b372eb
> # Parent f35562129a6edb5dec21e3121464fe04309eb5f6
> # EXP-Topic chg-test
> tests: add hghave rule 'setprocname' to check if osutil.procname and use it
>
> setprocname is not present when we build a pure version. This leads to output
> changes in test-chg.t
>
> This should make test suite green on Python 2 pure build with chg.
>
> Differential Revision: https://phab.mercurial-scm.org/D8638
>
> diff --git a/tests/hghave.py b/tests/hghave.py
> --- a/tests/hghave.py
> +++ b/tests/hghave.py
> @@ -683,6 +683,17 @@ def has_serve():
> return True
>
>
> + at check("setprocname", "whether osutil.procname is available or not")
> +def has_setprocname():
> + try:
> + from mercurial.utils import procutil
> +
> + procutil.procname
^^^^^^^^
setprocname?
More information about the Mercurial-devel
mailing list