diff options
author | Shwetha-H-Panduranga <shwetha@gluster.com> | 2011-12-06 14:11:13 +0530 |
---|---|---|
committer | Shwetha-H-Panduranga <shwetha@gluster.com> | 2011-12-06 14:11:13 +0530 |
commit | 18445ae1a94366c955cc7626fb8ec749dedcf73e (patch) | |
tree | af8b3a9db47f3a472aa4abae4629b517aa71885b /atfinit.py | |
parent | 5b847067495a65c71c56ad477780ed57e9e0fb2f (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'] |