Mercurial > public > mercurial-scm > hg-stable
diff tests/hghave.py @ 49618:a2356e15200a stable
hghave: add predicates for embedded and filesystem pyoxidizer resources
There are a handful of tests with different output between the two flavors of
pyoxidizer builds (like the location of the modules and templates), and a few
others that avoid `known-bad-output` cases with the embedded resources that
shouldn't cause the tests to fail.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 06 Dec 2022 13:02:54 -0500 |
parents | 38ae503b369b |
children | 42baf12efd21 |
line wrap: on
line diff
--- a/tests/hghave.py Mon Dec 05 11:49:56 2022 -0500 +++ b/tests/hghave.py Tue Dec 06 13:02:54 2022 -0500 @@ -202,6 +202,22 @@ return 'PYOXIDIZED_INSTALLED_AS_HG' in os.environ +@check( + "pyoxidizer-in-memory", + "running with pyoxidizer build as 'hg' with embedded resources", +) +def has_pyoxidizer(): + return 'PYOXIDIZED_IN_MEMORY_RSRC' in os.environ + + +@check( + "pyoxidizer-in-filesystem", + "running with pyoxidizer build as 'hg' with external resources", +) +def has_pyoxidizer(): + return 'PYOXIDIZED_FILESYSTEM_RSRC' in os.environ + + @check("cvs", "cvs client/server") def has_cvs(): re = br'Concurrent Versions System.*?server'