Exemplo n.º 1
0
 def gen():
     for idl_path in sorted(list_idls(directory)):
         if not is_test_or_third_party_idl(idl_path):
             for command in parse_idl(
                     idl_path, import_directories).spec.symbols.commands:
                 if command.api_version == api_version:
                     yield command.command_name, command
Exemplo n.º 2
0
def gen_all_feature_flags(idl_dir: str, import_dirs: List[str]):
    """Generate a list of all feature flags."""
    all_flags = []
    for idl_path in sorted(lib.list_idls(idl_dir)):
        for feature_flag in lib.parse_idl(idl_path,
                                          import_dirs).spec.feature_flags:
            if feature_flag.default.literal != "true":
                all_flags.append(feature_flag.name)

    force_disabled_flags = yaml.safe_load(
        open("buildscripts/resmokeconfig/fully_disabled_feature_flags.yml"))

    return list(set(all_flags) - set(force_disabled_flags))