aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2012-12-19 19:45:07 +0100
committerDavid Sommerseth <davids@redhat.com>2012-12-19 19:57:23 +0100
commit125e033a8ec484e0a5588737b02f3061315ad4ec (patch)
treeeae6f7c26bd425ac892f35b308a6ca3b2e231da5
parentf81851c7ad1adf4128a16bac7dc76bc179315e68 (diff)
downloadrteval-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-xrteval-cmd16
1 files changed, 9 insertions, 7 deletions
diff --git a/rteval-cmd b/rteval-cmd
index 9708e10..ae90343 100755
--- a/rteval-cmd
+++ b/rteval-cmd
@@ -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)