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)
评论列表
文章目录