diff options
author | David Sommerseth <davids@redhat.com> | 2012-12-19 19:45:07 +0100 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2012-12-19 19:57:23 +0100 |
commit | 125e033a8ec484e0a5588737b02f3061315ad4ec (patch) | |
tree | eae6f7c26bd425ac892f35b308a6ca3b2e231da5 | |
parent | f81851c7ad1adf4128a16bac7dc76bc179315e68 (diff) | |
download | rteval-125e033a8ec484e0a5588737b02f3061315ad4ec.tar.gz |
Don't override measurement and loads config sections from config file
If it was attempted to disable a module from the config file, that
was impossible as the default was to enable them.
Signed-off-by: David Sommerseth <davids@redhat.com>
-rwxr-xr-x | rteval-cmd | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -197,13 +197,6 @@ if __name__ == '__main__': 'xslt_report': '/usr/share/rteval/rteval_text.xsl', 'report_interval': '600', 'logging' : False, - }, - 'loads' : { - 'kcompile' : 'module', - 'hackbench' : 'module', - }, - 'measurement' : { - 'cyclictest' : 'module', } } @@ -226,6 +219,15 @@ if __name__ == '__main__': # No configuration file given pass + if not config.HasSection('loads'): + config.AppendConfig('loads',{ + 'kcompile' : 'module', + 'hackbench' : 'module' }) + + if not config.HasSection('measurement'): + config.AppendConfig('measurement', { + 'cyclictest' : 'module'}) + loadmods = LoadModules(config, logger=logger) measuremods = MeasurementModules(config, logger=logger) |