]> git.e2factory.org Git - e2factory.git/commitdiff
Make load_result_config() plural and add documentation
authorTobias Ulmer <tu@emlix.com>
Wed, 8 Jan 2014 17:38:21 +0000 (18:38 +0100)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:41:17 +0000 (15:41 +0100)
Reflect that this function loads all result configs into the info table.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
local/e2tool.lua

index 5dd2bfb914e6b585bcca94d9e660bd2d03c0af87..5c928c026ef0ff01f83da6adce2dfef9f1c29744 100644 (file)
@@ -1113,8 +1113,11 @@ local function gather_result_paths(info, basedir, results)
     return results
 end
 
---- load result config.
-local function load_result_config(info)
+--- Load all result configs. Creates and populates the info.results dictionary.
+-- @param info Info table.
+-- @return True on success, false on error.
+-- @return Error object on failure.
+local function load_result_configs(info)
     local e = err.new("error loading result configuration")
     info.results = {}
 
@@ -1169,7 +1172,7 @@ local function load_result_config(info)
             info.results[name] = item.data
         end
     end
-    return true, nil
+    return true
 end
 
 --- Read project configuration file.
@@ -1360,7 +1363,7 @@ function e2tool.collect_project_info(info, skip_load_config)
         return false, e:cat(re)
     end
 
-    rc, re = load_result_config(info)
+    rc, re = load_result_configs(info)
     if not rc then
         return false, e:cat(re)
     end