(self, cmd, input_text=None, timeout=None, echo=True, loud=False, ignore_lines=None, primary=False)
Similar to test, this will call failed command callbacks when the commands fail, which MAY be intercepted
        by properly-programmed callbacks to fail the entire execution process.
Similar to test, this will call failed command callbacks when the commands fail, which MAY be intercepted
        by properly-programmed callbacks to fail the entire execution process.
Similar to test this will call failed command callbacks when the commands fail which MAY be intercepted by properly - programmed callbacks to fail the entire execution process .
def run(self, cmd, input_text=None, timeout=None, echo=True, loud=False, ignore_lines=None, primary=False):
        """
        Similar to test, this will call failed command callbacks when the commands fail, which MAY be intercepted
        by properly-programmed callbacks to fail the entire execution process.
        """
        try:
            return self._handle_cmd(cmd, 
                input_text=input_text, 
                timeout=timeout, 
                echo=echo, fatal=True, 
                loud=loud, 
                ignore_lines=ignore_lines, 
                primary=primary
            )
        except FailedResult as re:
            if self.ignore_errors:
                return re.result
            if self.failed_when is None:
                raise re
            failed = True
            if callable(self.failed_when) and not self.failed_when(re.result):
                failed = False
            elif not self.failed_when:
                failed = False
            if failed:
                raise re
            return re.result
def run ( self , cmd , input_text = None , timeout = None , echo = True , loud = False , ignore_lines = None , primary = False ) : try : return self . _handle_cmd ( cmd , input_text = input_text , timeout = timeout , echo = echo , fatal = True , loud = loud , ignore_lines = ignore_lines , primary = primary ) except FailedResult as re : if self . ignore_errors : return re . result if self . failed_when is None : raise re failed = True if callable ( self . failed_when ) and not self . failed_when ( re . result ) : failed = False elif not self . failed_when : failed = False if failed : raise re return re . result