def end_test(self, retcode):
        if self.process and self.process.poll() == None:
            self.log.warn("Terminating ab process with PID %s", self.process.pid)
            self.process.terminate()
        else:
            self.log.info("Seems ab finished OK")

        if self.process:
            tankcore.log_stdout_stderr(self.log, self.process.stdout, self.process.stderr, self.SECTION)
        return retcode
Example #2
0
    def end_test(self, retcode):
        if self.process and self.process.poll() == None:
            self.log.warn("Terminating ab process with PID %s",
                          self.process.pid)
            self.process.terminate()
        else:
            self.log.info("Seems ab finished OK")

        if self.process:
            tankcore.log_stdout_stderr(self.log, self.process.stdout,
                                       self.process.stderr, self.SECTION)
        return retcode
Example #3
0
 def is_test_finished(self):
     if not self.phout_import_mode:
         tankcore.log_stdout_stderr(self.log, self.process.stdout, self.process.stderr, self.SECTION)
 
         retcode = self.process.poll()
         if retcode != None:
             self.log.info("Phantom done its work with exit code: %s", retcode)
             return abs(retcode)
         else:
             return -1
     else:
         if not self.processed_ammo_count or self.did_phout_import_try != self.processed_ammo_count:
             self.did_phout_import_try = self.processed_ammo_count
             return -1
         else:
             return 0
Example #4
0
    def is_test_finished(self):
        if not self.phout_import_mode:
            tankcore.log_stdout_stderr(self.log, self.process.stdout,
                                       self.process.stderr, self.SECTION)

            retcode = self.process.poll()
            if retcode != None:
                self.log.info("Phantom done its work with exit code: %s",
                              retcode)
                return retcode
            else:
                return -1
        else:
            if not self.processed_ammo_count or self.did_phout_import_try != self.processed_ammo_count:
                self.did_phout_import_try = self.processed_ammo_count
                return -1
            else:
                return 0