diff options
author | Shwetha-H-Panduranga <shwetha@gluster.com> | 2011-12-06 14:26:59 +0530 |
---|---|---|
committer | Shwetha-H-Panduranga <shwetha@gluster.com> | 2011-12-06 14:26:59 +0530 |
commit | 77c7f324610224e808d8940aec7e6dbf19b790a5 (patch) | |
tree | 4d5b3abe8e8220b058f9828822b527b2d6331702 /atfinit.py | |
parent | 129e39fe6878f28ca203c690fab382b7289b334c (diff) |
Adding New/Updated Automation Files
Diffstat (limited to 'atfinit.py')
-rw-r--r-- | atfinit.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/atfinit.py b/atfinit.py new file mode 100644 index 0000000..f50eefb --- /dev/null +++ b/atfinit.py @@ -0,0 +1,27 @@ +"""atfinit module + +""" +import os.path +import parser +from atfglobals import GlobalObj + +def _initialize_testrun_info(testrun_info_filename): + """ + """ + return_status = 1 + if not os.path.exists(testrun_info_filename): + print "Testrun Info File ' %s ' not found" % testrun_info_filename + return return_status + else: + return_status = parser.parse_testrun_info_file(testrun_info_filename) + return return_status + +def initialize(args): + """ + *) Initialize TestrunInfo File + """ + testrun_info_filename = args.file + return_status = _initialize_testrun_info(testrun_info_filename) + return return_status + +__all__ = ['initialize'] |