Skip to content

Commit 9cf65b5

Browse files
committed
Better variable names
1 parent 04476d3 commit 9cf65b5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

easybuild/tools/testing.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
_log = fancylogger.getLogger('testing', fname=False)
6161

6262
_exclude_env_from_report = []
63-
DEFAULT_EXCLUDE_FROM_REPORT = [
63+
DEFAULT_EXCLUDE_FROM_TEST_REPORT_ENV_VAR_NAMES = [
6464
'KEY',
6565
'SECRET',
6666
'TOKEN',
@@ -72,7 +72,7 @@
7272
'LICENSE',
7373
'LICENCE',
7474
]
75-
DEFAULT_EXCLUDE_FROM_REPORT_RGX = [
75+
DEFAULT_EXCLUDE_FROM_TEST_REPORT_VALUE_REGEX = [
7676
# From PR comments https://github.com/easybuilders/easybuild-framework/pull/4877
7777
r'AKIA[0-9A-Z]{16}', # AWS access key
7878
r'[A-Za-z0-9/+=]{40}', # AWS secret key
@@ -324,12 +324,12 @@ def create_test_report(msg, ecs_with_res, init_session_state, pr_nrs=None, gist_
324324
if env_filter is not None and env_filter.search(key):
325325
continue
326326
value = environ_dump[key]
327-
if any(re.match(rgx, value) for rgx in DEFAULT_EXCLUDE_FROM_REPORT_RGX):
327+
if any(re.match(rgx, value) for rgx in DEFAULT_EXCLUDE_FROM_TEST_REPORT_VALUE_REGEX):
328328
continue
329329
environment += ["%s = %s" % (key, value)]
330330

331331
environment = list(filter(
332-
lambda x: not any(y in x.upper() for y in DEFAULT_EXCLUDE_FROM_REPORT + _exclude_env_from_report),
332+
lambda x: not any(y in x.upper() for y in DEFAULT_EXCLUDE_FROM_TEST_REPORT_ENV_VAR_NAMES + _exclude_env_from_report),
333333
environment
334334
))
335335

0 commit comments

Comments
 (0)