yandextank/plugins/ShellExec/plugin.py
def execute(self, cmd):
        """
        Execute and check exit code
        """
        self.log.info("Executing: %s", cmd)
        retcode = execute(
            cmd, shell=True, poll_period=0.1, catch_out=self.catch_out)[0]
        if retcode:
            raise RuntimeError("Subprocess returned %s" % retcode)
        return retcode
def execute(self, cmd):
        self.log.info("Executing: %s", cmd)
        retcode = execute(
            cmd, shell=True, poll_period=0.1, catch_out=self.catch_out)[0]
        if retcode:
            raise RuntimeError("Subprocess returned %s" % retcode)
        return retcode
def execute ( self , cmd ) : self . log . info ( "Executing: %s" , cmd ) retcode = execute ( cmd , shell = True , poll_period = 0.1 , catch_out = self . catch_out ) [ 0 ] if retcode : raise RuntimeError ( "Subprocess returned %s" % retcode ) return retcode
Execute and check exit code
Execute and check exit code