Skip to content

Commit 7ebbee1

Browse files
committed
Change --show-default-configfiles language to clarify priority
E.g.: Default list of existing configuration files (5, most important last): /home/oldeman/lo/easybuild.d/bla.cfg, /home/oldeman/lo/easybuild.d/foo.cfg, /home/oldeman/hi/easybuild.d/bla.cfg, /home/oldeman/hi/easybuild.d/foo.cfg, /home/oldeman/.config/easybuild/config.cfg
1 parent 9367dce commit 7ebbee1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

easybuild/tools/options.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1337,7 +1337,8 @@ def show_default_configfiles(self):
13371337
"* system-level: %s" % os.path.join('${XDG_CONFIG_DIRS:-/etc/xdg}', 'easybuild.d', '*.cfg'),
13381338
" -> %s => %s" % (system_cfg_glob_paths, ', '.join(flatten(DEFAULT_SYS_CFGFILES)) or "(no matches)"),
13391339
'',
1340-
"Default list of existing configuration files (%d): %s" % (found_cfgfile_cnt, found_cfgfile_list),
1340+
"Default list of existing configuration files (%d, most important last):" % found_cfgfile_cnt,
1341+
found_cfgfile_list,
13411342
]
13421343
return '\n'.join(lines)
13431344

test/framework/options.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3523,7 +3523,8 @@ def test_show_default_configfiles(self):
35233523
expected_tmpl += '\n'.join([
35243524
"%s",
35253525
'',
3526-
"Default list of existing configuration files (%d): %s",
3526+
"Default list of existing configuration files (%d, most important last):",
3527+
"%s",
35273528
])
35283529

35293530
# put dummy cfgfile in place in $HOME (to predict last line of output which only lists *existing* files)

0 commit comments

Comments
 (0)