aboutsummaryrefslogtreecommitdiff
path: root/debug_info_test
diff options
context:
space:
mode:
authorGeorge Burgess IV <gbiv@google.com>2020-06-24 17:00:47 -0700
committerCommit Bot <commit-bot@chromium.org>2020-06-25 18:34:10 +0000
commit0c1730a05945799cf65aced40063c17ffafe737f (patch)
tree78d72a9dfb04aa7187a9c49c06974acd6018a31b /debug_info_test
parentad5e320d98f0101b5c094270d6f26dae981c1460 (diff)
downloadtoolchain-utils-0c1730a05945799cf65aced40063c17ffafe737f.tar.gz
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>
Diffstat (limited to 'debug_info_test')
-rw-r--r--debug_info_test/allowlist.py5
-rw-r--r--debug_info_test/exist_debug_info.allowlist (renamed from debug_info_test/exist_debug_info.whitelist)0
-rw-r--r--debug_info_test/exist_producer.allowlist (renamed from debug_info_test/exist_producer.whitelist)0
-rw-r--r--debug_info_test/ngcc_comp_path.allowlist (renamed from debug_info_test/ngcc_comp_path.whitelist)0
-rw-r--r--debug_info_test/ngcc_dso_path.allowlist (renamed from debug_info_test/ngcc_dso_path.whitelist)0
5 files changed, 2 insertions, 3 deletions
diff --git a/debug_info_test/allowlist.py b/debug_info_test/allowlist.py
index 978b2370..9cf42af0 100644
--- a/debug_info_test/allowlist.py
+++ b/debug_info_test/allowlist.py
@@ -43,11 +43,10 @@ def prepare_allowlist(patterns):
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 @@ def load_allowlists(dirname):
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
index e0076fd6..e0076fd6 100644
--- a/debug_info_test/exist_debug_info.whitelist
+++ b/debug_info_test/exist_debug_info.allowlist
diff --git a/debug_info_test/exist_producer.whitelist b/debug_info_test/exist_producer.allowlist
index ee75de72..ee75de72 100644
--- a/debug_info_test/exist_producer.whitelist
+++ b/debug_info_test/exist_producer.allowlist
diff --git a/debug_info_test/ngcc_comp_path.whitelist b/debug_info_test/ngcc_comp_path.allowlist
index 45c5b4a2..45c5b4a2 100644
--- a/debug_info_test/ngcc_comp_path.whitelist
+++ b/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
index 858465e0..858465e0 100644
--- a/debug_info_test/ngcc_dso_path.whitelist
+++ b/debug_info_test/ngcc_dso_path.allowlist