in pytest_rally/process.py [0:0]
def run_command_with_output(cmd):
try:
proc = subprocess.run(shlex.split(cmd), text=True, capture_output=True, check=True)
return proc.stdout
except subprocess.CalledProcessError as e:
raise AssertionError(f"Failed to run command [{cmd}]", e.stdout)