def create_parser() -> argparse.ArgumentParser:
parser = argparse.ArgumentParser()
parser.add_argument( "-p", "--path", type=abs_path, help="Path to manifest file.")
parser.add_argument( "--src-root", type=abs_path, help="Path to root of sourcetree.")
parser.add_argument( "--tests-root", type=abs_path, default=wpt_root, help="Path to root of tests.")
parser.add_argument( "--no-update", dest="update", action="store_false",
help="Don't update manifest before continuing")
parser.add_argument( "-r", "--rebuild", action="store_true",
help="Force a full rebuild of the manifest.")
parser.add_argument( "--url-base", default="/",
help="Base url to use as the mount point for tests in this manifest.")
parser.add_argument( "--cache-root", default=os.path.join(wpt_root, ".wptcache"),
help="Path in which to store any caches (default /.wptcache/)")
parser.add_argument( "--json", action="store_true",
help="Output as JSON")
parser.add_argument( "test_ids", nargs="+",
help="Test ids for which to get paths") return parser
for item_type, path, tests in manifest_file: for test in tests: if test.id in test_ids: if compute_rel_path:
rel_path = os.path.relpath(os.path.join(tests_root, path),
src_root) else:
rel_path = path
path_id_map[rel_path].append(test.id) return path_id_map
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.