'Underlying method for running something inside of a group.'

def _run_group(self, name, subdir, function, *args, **dargs):

    (result, exc_info) = (None, None)
    try:
        self.record('START', subdir, name)
        result = function(*args, **dargs)
    except error.TestBaseException as e:
        self.record(('END    %s' % e.exit_status), subdir, name)
        exc_info = sys.exc_info()
    except Exception as e:
        err_msg = (str(e) + '\n')
        err_msg += traceback.format_exc()
        self.record('END    ABORT', subdir, name, err_msg)
        raise error.JobError(((name + '    failed\n') + traceback.format_exc()))
    else:
        self.record('END    GOOD', subdir, name)
    return (result, exc_info)
