def check_output(cmds, shell=False):
try:
output = subprocess.check_output(cmds, stderr=subprocess.STDOUT, shell=shell)
return output
except subprocess.CalledProcessError:
# logger.warn('Failed to run command: %s', ' '.join(cmds))
# logger.warn('Error output:\n%s', e.output)
raise
评论列表
文章目录