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

perfext: get better error output when the command call fails

We get the actual command output instead of a traceback within the benchmark
code.
parent 5e0164a76aa0
No related branches found
No related tags found
No related merge requests found
...@@ -499,6 +499,10 @@ ...@@ -499,6 +499,10 @@
# command does not exist for this version of perf.py # command does not exist for this version of perf.py
# return NaN which is a "n/a" status for asv # return NaN which is a "n/a" status for asv
return None return None
except subprocess.CalledProcessError as exc:
msg = "calling perf command failed [%d]: %s %s" % (exc.returncode, command, args)
print(msg, file=sys.stderr)
print(exc.output, file=sys.stderr)
def perfext(self, command, *args, **kwargs): def perfext(self, command, *args, **kwargs):
"""Use contrib/perf.py extension from mercurial to get a benchmark result""" """Use contrib/perf.py extension from mercurial to get a benchmark result"""
......
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