diff options
author | Clark Williams <williams@redhat.com> | 2010-06-14 15:07:42 -0500 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2010-06-14 15:07:42 -0500 |
commit | f9fa2c6e06432d93c8264830b61cdf8f94883d3d (patch) | |
tree | cf07da7c34444e50c987bd73a27ccb5f6dc50a23 /rteval/rtevalConfig.py | |
parent | aef0ad6ec0f80c97e03891b97dd8f7221ec64c18 (diff) | |
parent | 2f5cec7a2f45461b7adb96687205fcc0c96dbac8 (diff) | |
download | rteval-f9fa2c6e06432d93c8264830b61cdf8f94883d3d.tar.gz rteval-f9fa2c6e06432d93c8264830b61cdf8f94883d3d.tar.xz rteval-f9fa2c6e06432d93c8264830b61cdf8f94883d3d.zip |
Merge remote branch 'davids/master_ipv4' into work
Diffstat (limited to 'rteval/rtevalConfig.py')
-rw-r--r-- | rteval/rtevalConfig.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/rteval/rtevalConfig.py b/rteval/rtevalConfig.py index 5fad260..bb77da2 100644 --- a/rteval/rtevalConfig.py +++ b/rteval/rtevalConfig.py @@ -185,3 +185,19 @@ class rtevalConfig(rtevalCfgSection): return rtevalCfgSection(self.__config_data[section]) except KeyError, err: raise KeyError("The section '%s' does not exist in the config file" % section) + + +def unit_test(rootdir): + try: + cfg = rtevalConfig() + cfg.Load(rootdir + '/rteval/rteval.conf') + print cfg + return 0 + except Exception, e: + print "** EXCEPTION %s", str(e) + return 1 + + +if __name__ == '__main__': + import sys + sys.exit(unit_test('..')) |