test_configsnap.py
def run_command(self, command):
        """Run a command and return output and exit code

        Args:
            param1 (str): the command to run

        Returns:
            list: stdout, stderr, exitcode
        """

        command_proc = subprocess.Popen(
            command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True, cwd=self.cwd)
        output = command_proc.stdout.read()
        error = command_proc.stderr.read()
        returncode = command_proc.wait()

        return TestResult(output, error, returncode)
Run a command and return output and exit code

        Args:
            param1 (str): the command to run

        Returns:
            list: stdout, stderr, exitcode
        
Run a command and return output and exit code
Run a command and return output and exit code
def run_command(self, command):
        command_proc = subprocess.Popen(
            command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True, cwd=self.cwd)
        output = command_proc.stdout.read()
        error = command_proc.stderr.read()
        returncode = command_proc.wait()
        return TestResult(output, error, returncode)
def run_command ( self , command ) : command_proc = subprocess . Popen ( command , stdout = subprocess . PIPE , stderr = subprocess . PIPE , shell = True , cwd = self . cwd ) output = command_proc . stdout . read ( ) error = command_proc . stderr . read ( ) returncode = command_proc . wait ( ) return TestResult ( output , error , returncode )
Run a command and return output and exit code
Run a command and return output and exit code
"""Run a command and return output and exit code

        Args:
            param1 (str): the command to run

        Returns:
            list: stdout, stderr, exitcode
        """
stdout, stderr, exitcode
stdout stderr exitcode
list
self
command
param1
the command to run
the command to run