# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1569338172 -7200
#      Tue Sep 24 17:16:12 2019 +0200
# Node ID 94b53f56284893d756e425de8f4f13b1f1ed9f5f
# Parent  c8f9ad4911d723c26ba3e388ac58cf7fb1247732
benchmark: silence error within `has_command`

We don't need stderr output about the unknown command.

diff --git a/benchmarks/utils/__init__.py b/benchmarks/utils/__init__.py
--- a/benchmarks/utils/__init__.py
+++ b/benchmarks/utils/__init__.py
@@ -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