Testing: be more verbose about what files are loaded.

This commit is contained in:
Adriaan de Groot 2017-10-23 11:57:11 +02:00
parent 5db8a8f65c
commit acd2d9f006

View File

@ -90,11 +90,17 @@ def test_module(moduledir, globalconfigfilename, moduleconfigfilename, lang):
gs_doc = yaml.load(f) gs_doc = yaml.load(f)
for key, value in gs_doc.items(): for key, value in gs_doc.items():
libcalamares.globalstorage.insert(key, value) libcalamares.globalstorage.insert(key, value)
print("Global configuration '" + globalconfigfilename + "' loaded.")
else:
print("No global configuration loaded.")
cfg_doc = dict() cfg_doc = dict()
if moduleconfigfilename: if moduleconfigfilename:
with open(moduleconfigfilename) as f: with open(moduleconfigfilename) as f:
cfg_doc = yaml.load(f) cfg_doc = yaml.load(f)
print("Local configuration '" + moduleconfigfilename + "' loaded.")
else:
print("No module configuration loaded.")
libcalamares.job = Job(moduledir, doc, cfg_doc) libcalamares.job = Job(moduledir, doc, cfg_doc)