avocado-setup.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:tests 作者: open-power-host-os 项目源码 文件源码
def install_repo(path):
    """
    Install the given repo
    :param repo: repository path
    """
    logger.info("Installing repo: %s", path)
    cmd = "cd %s;make requirements;python setup.py install" % path
    try:
        status, output = commands.getstatusoutput(cmd)
        logger.debug("%s", output)
        if status != 0:
            logger.error("Error while installing: %s\n%s",
                         path.split('/')[-1], status)
            sys.exit(1)
    except Exception, error:
        logger.error("Failed with exception during installing %s\n%s",
                     path.split('/')[-1], error)
        sys.exit(1)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号