'Execute command in desired cgroup
:param: cgroup: Desired cgroup
:param: cmd: Executed command
:param: args: Executed command\'s parameters'

def cgexec(self, cgroup, cmd, args=''):

    try:
        args_str = ''
        if len(args):
            args_str = '    '.join(args)
        cgexec_cmd = ('cgexec    -g    %s:%s    %s    %s' % (self.module, cgroup, cmd, args_str))
        (status, output) = commands.getstatusoutput(cgexec_cmd)
        return (status, output)
    except error.CmdError as detail:
        raise error.TestFail(('Execute    %s    in    cgroup    failed!\n%s' % (cmd, detail)))
