commit | 0c1730a05945799cf65aced40063c17ffafe737f | [log] [tgz] |
---|---|---|
author | George Burgess IV <gbiv@google.com> | Wed Jun 24 17:00:47 2020 -0700 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Jun 25 18:34:10 2020 +0000 |
tree | 78d72a9dfb04aa7187a9c49c06974acd6018a31b | |
parent | ad5e320d98f0101b5c094270d6f26dae981c1460 [diff] |
debug_info_test: fix up naming This replaces 'whitelist' with 'allowlist' in debug_info_test's file names, as a follow up to the previous NFC CL's cleanups. BUG=chromium:1099035 TEST=CQ+1 Change-Id: I0e99fa230a78251a6a555941db6f4758d0cf9367 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2265050 Reviewed-by: Tiancong Wang <tcwang@google.com> Tested-by: George Burgess <gbiv@chromium.org> Commit-Queue: George Burgess <gbiv@chromium.org>
diff --git a/debug_info_test/allowlist.py b/debug_info_test/allowlist.py index 978b237..9cf42af 100644 --- a/debug_info_test/allowlist.py +++ b/debug_info_test/allowlist.py
@@ -43,11 +43,10 @@ return re.compile('|'.join(patterns)) -# FIXME: s/whitelist/allowlist/ in the file extension. def load_allowlists(dirname): """Load allowlists under dirname. - An allowlist ends with .whitelist. + An allowlist ends with .allowlist. Args: dirname: path to the dir. @@ -56,7 +55,7 @@ A dictionary of 'filename' -> allowlist matcher. """ wlist = {} - for fn in glob.glob(os.path.join(dirname, '*.whitelist')): + for fn in glob.glob(os.path.join(dirname, '*.allowlist')): key = os.path.splitext(os.path.basename(fn))[0] with open(fn, 'r', encoding='utf-8') as f: patterns = f.read().splitlines()
diff --git a/debug_info_test/exist_debug_info.whitelist b/debug_info_test/exist_debug_info.allowlist similarity index 100% rename from debug_info_test/exist_debug_info.whitelist rename to debug_info_test/exist_debug_info.allowlist
diff --git a/debug_info_test/exist_producer.whitelist b/debug_info_test/exist_producer.allowlist similarity index 100% rename from debug_info_test/exist_producer.whitelist rename to debug_info_test/exist_producer.allowlist
diff --git a/debug_info_test/ngcc_comp_path.whitelist b/debug_info_test/ngcc_comp_path.allowlist similarity index 100% rename from debug_info_test/ngcc_comp_path.whitelist rename to debug_info_test/ngcc_comp_path.allowlist
diff --git a/debug_info_test/ngcc_dso_path.whitelist b/debug_info_test/ngcc_dso_path.allowlist similarity index 100% rename from debug_info_test/ngcc_dso_path.whitelist rename to debug_info_test/ngcc_dso_path.allowlist