コード例 #1
0
ファイル: lintRunner.py プロジェクト: Wkasel/qooxdoo
 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
コード例 #2
0
ファイル: lintRunner.py プロジェクト: websales/qooxdoo
    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
コード例 #3
0
    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