'Capture the output for a command'

def capture_command_output(self, cmd, output):

    if ('command' not in self.command_results):
        self.command_results['command'] = []
    self.command_results['command'].append(cmd)
    if ('output' not in self.command_results):
        self.command_results['output'] = []
    self.command_results['output'].append(output)
