def get_required_attr(config, attr_name):
    attr_value = getattr(config, attr_name, None)
    if (attr_value == None):
        lit_config.fatal(('No attribute %r in test configuration! You may need to run tests from your build directory or add this attribute to lit.site.cfg.py ' % attr_name))
    return attr_value
def get_required_attr(config, attr_name):
    attr_value = getattr(config, attr_name, None)
    if (attr_value == None):
        lit_config.fatal(('No attribute %r in test configuration! You may need to run tests from your build directory or add this attribute to lit.site.cfg.py ' % attr_name))
    return attr_value