Mercurial > hg
view tests/mockblackbox.py @ 51712:e153995011b7
heptapod-ci: move version prints closer to the start
This makes debugging a lot easier if anything is to go wrong, and shows output
earlier.
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Tue, 23 Jul 2024 12:12:03 +0200 |
parents | ca7bde5dbafb |
children |
line wrap: on
line source
from mercurial.utils import procutil # XXX: we should probably offer a devel option to do this in blackbox directly def getuser(): return b'bob' def getpid(): return 5000 # mock the date and user apis so the output is always the same def uisetup(ui): procutil.getuser = getuser procutil.getpid = getpid