Beispiel #1
0
    def runPerfMatrix(self):

        part = self.only
        wf = ''
        m = re.match('^perfMatrix(\d+\.\d+|)$',part)
        if m:  wf = m.group(1)
        if wf: wf = '--list '+wf
        cmd = 'mkdir %s; cd %s;' % (part, part)
        cmd += scriptPath+'/runPerfMatrix.py %s > %s.log 2>&1 ' % (wf, part)
        self.doCmd( cmd )

        from publishQAResults import QAPublisher
        qap = QAPublisher(self.plat, self.release)
        qap.publishPerfMatrixResults(part)

        remDir = self.afsLogDir
        if not os.path.exists(remDir): os.makedirs(remDir)

        cmd = 'cp '+part+'/'+part+'.log '+remDir
        try:
            self.doCmd( cmd )
        except Exception, e:
            print "ERROR when copying perfMatrix logFile to ", remDir
            print "      exception ", str(e)
            print "      cmd = ", cmd
Beispiel #2
0
    def runPerfMatrix(self):

        part = self.only
        wf = ''
        m = re.match('^perfMatrix(\d+\.\d+|)$', part)
        if m: wf = m.group(1)
        if wf: wf = '--list ' + wf
        cmd = 'mkdir %s; cd %s;' % (part, part)
        cmd += scriptPath + '/runPerfMatrix.py %s > %s.log 2>&1 ' % (wf, part)
        self.doCmd(cmd)

        from publishQAResults import QAPublisher
        qap = QAPublisher(self.plat, self.release)
        qap.publishPerfMatrixResults(part)

        remDir = self.afsLogDir
        if not os.path.exists(remDir): os.makedirs(remDir)

        cmd = 'cp ' + part + '/' + part + '.log ' + remDir
        try:
            self.doCmd(cmd)
        except Exception, e:
            print "ERROR when copying perfMatrix logFile to ", remDir
            print "      exception ", str(e)
            print "      cmd = ", cmd