コード例 #1
0
 def shutdown(self):
     shutdown_process(self.pbench.process, self.log)
     if not os.path.exists(self.pbench.kpi_file) or os.path.getsize(
             self.pbench.kpi_file) == 0:
         raise RuntimeError(
             "Empty results file, most likely phantom-benchmark has failed: %s",
             self.pbench.kpi_file)
コード例 #2
0
ファイル: grinder.py プロジェクト: Emilnurg/Falcon-simple-API
 def shutdown(self):
     """
     If tool is still running - let's stop it.
     """
     shutdown_process(self.process, self.log)
     if self.start_time:
         self.end_time = time.time()
         self.log.debug("Grinder worked for %s seconds", self.end_time - self.start_time)
コード例 #3
0
ファイル: grinder.py プロジェクト: andy7i/taurus
 def shutdown(self):
     """
     If tool is still running - let's stop it.
     """
     shutdown_process(self.process, self.log)
     if self.start_time:
         self.end_time = time.time()
         self.log.debug("Grinder worked for %s seconds", self.end_time - self.start_time)
コード例 #4
0
ファイル: siege.py プロジェクト: vodka1983/taurus
 def shutdown(self):
     """
     If tool is still running - let's stop it.
     """
     shutdown_process(self.process, self.log)
     if self.__out and not self.__out.closed:  # FIXME: this should happen in post_process
         self.__out.close()
     if self.__err and not self.__err.closed:
         self.__err.close()
コード例 #5
0
 def shutdown(self):
     """
     If tool is still running - let's stop it.
     """
     shutdown_process(self.process, self.log)
     if self.__out and not self.__out.closed:
         self.__out.close()
     if self.__err and not self.__err.closed:
         self.__err.close()
コード例 #6
0
    def shutdown(self):
        """
        If task was not completed, kill process, provide output
        else provide output
        :return:
        """
        self.check()

        if self.ret_code is None:
            self.log.info("Background task was not completed, shutting it down: %s", self)
            shutdown_process(self.process, self.log)
        self.process = None
コード例 #7
0
 def shutdown(self):
     if self.appium_process:
         self.log.debug('Stopping appium...')
         shutdown_process(self.appium_process, self.log)
     if not self.stdout.closed:
         self.stdout.close()
     if not self.stderr.closed:
         self.stderr.close()
     _file = self.stdout.name
     if not os.stat(_file).st_size:
         os.remove(_file)
     _file = self.stderr.name
     if not os.stat(_file).st_size:
         os.remove(_file)
コード例 #8
0
ファイル: services.py プロジェクト: keithmork/taurus
 def shutdown(self):
     if self.appium_process:
         self.log.debug('Stopping appium...')
         shutdown_process(self.appium_process, self.log)
     if not self.stdout.closed:
         self.stdout.close()
     if not self.stderr.closed:
         self.stderr.close()
     _file = self.stdout.name
     if not os.stat(_file).st_size:
         os.remove(_file)
     _file = self.stderr.name
     if not os.stat(_file).st_size:
         os.remove(_file)
コード例 #9
0
ファイル: shellexec.py プロジェクト: andy7i/taurus
    def shutdown(self):
        """
        If task was not completed, kill process, provide output
        else provide output
        :return:
        """
        self.check()

        if self.process and self.process.returncode is None:
            self.log.info("Background task was not completed, shutting it down: %s", self)
            shutdown_process(self.process, self.log)

        self.process = None
        for stream in (self.out, self.err):
            if stream and stream != PIPE:
                stream.close()
コード例 #10
0
    def shutdown(self):
        """
        If task was not completed, kill process, provide output
        else provide output
        :return:
        """
        self.check()

        if self.process and self.process.returncode is None:
            self.log.info("Background task was not completed, shutting it down: %s", self)
            shutdown_process(self.process, self.log)

        self.process = None
        for stream in (self.out, self.err):
            if stream and stream != PIPE:
                stream.close()
コード例 #11
0
ファイル: molotov.py プロジェクト: andy7i/taurus
 def shutdown(self):
     shutdown_process(self.process, self.log)
コード例 #12
0
ファイル: locustio.py プロジェクト: zhunzhong/taurus
 def shutdown(self):
     try:
         shutdown_process(self.process, self.log)
     finally:
         if self.__out:
             self.__out.close()
コード例 #13
0
ファイル: siege.py プロジェクト: andy7i/taurus
 def shutdown(self):
     """
     If tool is still running - let's stop it.
     """
     shutdown_process(self.process, self.log)
コード例 #14
0
ファイル: selenium.py プロジェクト: SPSCommerce/taurus
 def shutdown(self):
     shutdown_process(self.process, self.log)
     for desc in self.opened_descriptors:
         desc.close()
     self.opened_descriptors = []
コード例 #15
0
ファイル: locustio.py プロジェクト: arunselvarajdb/taurus
 def shutdown(self):
     shutdown_process(self.process, self.log)
     if self.__out:
         self.__out.close()
         self.__out.close()
コード例 #16
0
 def shutdown(self):
     shutdown_process(self.process, self.log)
     if self.__out:
         self.__out.close()
         self.__out.close()
コード例 #17
0
ファイル: executor.py プロジェクト: Avi-Labs/taurus
 def shutdown(self):
     shutdown_process(self.process, self.log, send_sigterm=False)
コード例 #18
0
ファイル: pbench.py プロジェクト: wr-tty/taurus
 def shutdown(self):
     shutdown_process(self.generator.process, self.log)
コード例 #19
0
ファイル: __init__.py プロジェクト: vijayj/taurus
 def shutdown(self):
     shutdown_process(self.process, self.log)
     for desc in self.opened_descriptors:
         desc.close()
     self.opened_descriptors = []
コード例 #20
0
ファイル: locustio.py プロジェクト: mukteshkrmishra/taurus
 def shutdown(self):
     try:
         shutdown_process(self.process, self.log)
     finally:
         if self.__out:
             self.__out.close()
コード例 #21
0
ファイル: ab.py プロジェクト: Emilnurg/Falcon-simple-API
 def shutdown(self):
     shutdown_process(self.process, self.log)
コード例 #22
0
ファイル: pbench.py プロジェクト: dutchb/taurus
 def shutdown(self):
     shutdown_process(self.pbench.process, self.log)
     if not os.path.exists(self.pbench.kpi_file) or os.path.getsize(self.pbench.kpi_file) == 0:
         raise RuntimeError("Empty results file, most likely phantom-benchmark has failed: %s", self.pbench.kpi_file)
コード例 #23
0
ファイル: siege.py プロジェクト: pyToshka/taurus
 def shutdown(self):
     """
     If tool is still running - let's stop it.
     """
     shutdown_process(self.process, self.log)
コード例 #24
0
ファイル: pbench.py プロジェクト: infomaven/taurus
 def shutdown(self):
     shutdown_process(self.generator.process, self.log)