script_module.py 文件源码

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

项目:STF 作者: nokia 项目源码 文件源码
def checkOthers(self, test_step):
        if os.access(test_step.path, X_OK):
            return

        logger.debug("add +x for %s", test_step.path)
        command = "chmod +x " + test_step.path
        proc = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
        outs, errs = proc.communicate()
        rc = proc.returncode
        if rc:
            raise Exception("command %s failed: rc is %s, output is %s, errs is %s ", command, rc, outs, errs)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号