def execute(self, add_command): command = self.base_command + add_command cmd = ' '.join(command) return common.execute(cmd)
def check_puppet_installed(self): exit_code, out, err = common.execute('which puppet') if exit_code == 1: self.skipTest('Puppet is not installed')