comparison tests/run-tests.py @ 47831:94158c541c74 stable

pyoxidized: add a `pyoxidizer` hghave keyword for line matching Some output line can be affected by pyoxidizer, for example the source file path are replaced by the module name. We introduce a new condition keyword to cope with this. Differential Revision: https://phab.mercurial-scm.org/D11283
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 17 Aug 2021 20:48:34 +0200
parents 83235fb50e1c
children d3f890e04525
comparison
equal deleted inserted replaced
47830:981cef5188c3 47831:94158c541c74
3239 bin_path = ( 3239 bin_path = (
3240 b'build/pyoxidizer/x86_64-pc-windows-msvc/release/app/hg.exe' 3240 b'build/pyoxidizer/x86_64-pc-windows-msvc/release/app/hg.exe'
3241 ) 3241 )
3242 full_path = os.path.join(reporootdir, bin_path) 3242 full_path = os.path.join(reporootdir, bin_path)
3243 self._hgcommand = full_path 3243 self._hgcommand = full_path
3244 # Affects hghave.py
3245 osenvironb[b'PYOXIDIZED_INSTALLED_AS_HG'] = b'1'
3246 else:
3247 osenvironb.pop(b'PYOXIDIZED_INSTALLED_AS_HG', None)
3244 3248
3245 osenvironb[b"BINDIR"] = self._bindir 3249 osenvironb[b"BINDIR"] = self._bindir
3246 osenvironb[b"PYTHON"] = PYTHON 3250 osenvironb[b"PYTHON"] = PYTHON
3247 3251
3248 fileb = _sys2bytes(__file__) 3252 fileb = _sys2bytes(__file__)