Esempio n. 1
0
 def do_summary(self):
     self.status = STATE_SUMMARY_WAITING        
     from autoSubmitterTemplates import summaryTemplate
     if self.alignment.isDesign:
         inputCommands = "iterNumber=%d setBaseline=%r measurementName=%s baselineName=%s"%(self.curIteration,self.alignment.isDesign,self.name, self.name)
     else:
         inputCommands = "iterNumber=%d setBaseline=%r measurementName=%s baselineName=%s"%(self.curIteration,self.alignment.isDesign,self.name, self.alignment.baselineDir)
     
     summary_result = subprocess.call(summaryTemplate.format(inputCommands=inputCommands), shell=True) # returns exit code (0 if no error occured)
     if summary_result == 0:
         self.status = STATE_SUMMARY_DONE
     else:
         self.status = STATE_SUMMARY_FAILED
         self.finishTime = subprocess.check_output(["date"]).strip()
     self.print_status()
Esempio n. 2
0
 def do_summary(self):
     self.status = STATE_SUMMARY_WAITING        
     from autoSubmitterTemplates import summaryTemplate
     if self.alignment.isDesign:
         #use measurement name as baseline folder name in this case
         inputCommands = "iterNumber={} setBaseline={} measurementName={} baselineName={}".format(self.curIteration,self.alignment.isDesign,self.name, self.name)
     else:
         inputCommands = "iterNumber={} setBaseline={} measurementName={} baselineName={}".format(self.curIteration,self.alignment.isDesign,self.name, self.alignment.baselineDir)
     
     summary_result = subprocess.call(summaryTemplate.format(inputCommands=inputCommands), shell=True) # returns exit code (0 if no error occured)
     if summary_result == 0:
         self.status = STATE_SUMMARY_DONE
     else:
         self.status = STATE_SUMMARY_FAILED
         self.finishTime = subprocess.check_output(["date"]).strip()
     self.print_status()
Esempio n. 3
0
    def do_summary(self):
        self.status = STATE_SUMMARY_WAITING
        from autoSubmitterTemplates import summaryTemplate
        if self.alignment.isDesign:
            inputCommands = "iterNumber=%d setBaseline=%r measurementName=%s baselineName=%s" % (
                self.curIteration, self.alignment.isDesign, self.name,
                self.name)
        else:
            inputCommands = "iterNumber=%d setBaseline=%r measurementName=%s baselineName=%s" % (
                self.curIteration, self.alignment.isDesign, self.name,
                self.alignment.baselineDir)

        summary_result = subprocess.call(
            summaryTemplate.format(inputCommands=inputCommands),
            shell=True)  # returns exit code (0 if no error occured)
        if summary_result == 0:
            self.status = STATE_SUMMARY_DONE
        else:
            self.status = STATE_SUMMARY_FAILED
        self.print_status()