def runLint(self, workdir): startdir = os.getcwd() print("Changing dir to " + workdir) os.chdir(workdir) print("Running Lint") ret,out,err = qxtest.invokePiped("%s generate.py lint" % sys.executable) if (ret > 0): raise RuntimeError, "Lint run failed. " + err print("Changing dir back to " + startdir) os.chdir(startdir) return out
def runLint(self, workdir): startdir = os.getcwd() print("Changing dir to " + workdir) os.chdir(workdir) print("Running Lint") ret, out, err = qxtest.invokePiped("%s generate.py lint" % sys.executable) if (ret > 0): raise RuntimeError, "Lint run failed. " + err print("Changing dir back to " + startdir) os.chdir(startdir) return out
def runLint(self, workdir): if not os.path.isdir(workdir): raise RuntimeError("Directory %s does not exist!" % workdir) startdir = os.getcwd() print("Changing dir to " + workdir) os.chdir(workdir) print("Running Lint") ret, out, err = qxtest.invokePiped("%s generate.py lint" % sys.executable) if (ret > 0): raise RuntimeError("Lint run failed. " + err) print("Changing dir back to " + startdir) os.chdir(startdir) return err