MOL 314 config file path added as cmd line parameter
diff --git a/run_test.py b/run_test.py
index 341119e..afd8bca 100755
--- a/run_test.py
+++ b/run_test.py
@@ -14,7 +14,7 @@
import start_vms
from nodes import discover
from nodes.node import Node
-from config import cfg_dict
+from config import cfg_dict, parse_config
from tests.itest import IOPerfTest, PgBenchTest
from sensors.api import start_monitoring
@@ -252,6 +252,11 @@
self.clear_calls_stack = []
+def load_config(path):
+ global cfg_dict
+ cfg_dict = parse_config(path)
+
+
def main(argv):
opts = parse_args(argv)
@@ -267,6 +272,8 @@
report_stage
]
+ load_config(opts.config_file)
+
ctx = Context()
ctx.build_meta['build_id'] = opts.build_id
ctx.build_meta['build_descrption'] = opts.build_description