Skip to content
Snippets Groups Projects
Commit 94b53f56 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

benchmark: silence error within `has_command`

We don't need stderr output about the unknown command.
parent c8f9ad49
No related branches found
No related tags found
No related merge requests found
......@@ -514,7 +514,12 @@
def has_command(self, cmd):
"""return true if the command exist at the current version"""
try:
self.hg('--config', 'ui.strict=yes', 'help', '--command', cmd)
self.hg('--config',
'ui.strict=yes',
'help',
'--command',
cmd,
stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as exc:
if exc.returncode != 255:
raise
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment