diff options
author | shwetha <shwetha.h.panduranga@redhat.com> | 2012-03-06 16:14:34 +0530 |
---|---|---|
committer | shwetha <shwetha.h.panduranga@redhat.com> | 2012-03-06 16:15:29 +0530 |
commit | 4a0b5f9d0e0266c8c67b5faa76599fc78a247437 (patch) | |
tree | f50ab57eb319f5ef18d08c8ae0db779a5b4d2287 /atfinit.py | |
parent | 0c9076add5f357b4278c4720c37518280a13e43e (diff) |
Adding libraries to suffix timestamps to the summarylog and detaillog files
Change-Id: I853981b0de99372509649360a67e8c4cca24b415
Signed-off-by: shwetha <shwetha.h.panduranga@redhat.com>
Diffstat (limited to 'atfinit.py')
-rw-r--r-- | atfinit.py | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -1,6 +1,6 @@ """atfinit module """ -import os.path +import os from atfglobals import GlobalObj def initialize(args): @@ -11,7 +11,7 @@ def initialize(args): if not (os.path.exists(atfdir) and os.path.isdir(atfdir)): print "ATFDIR '%s' doesn't exist" % atfdir return 1 - + testruninfo_abspath = os.path.abspath(args.testruninfo_file) if not (os.path.exists(testruninfo_abspath) and os.path.isfile(testruninfo_abspath)): @@ -20,8 +20,9 @@ def initialize(args): os.patn.isfile(testruninfo_abspath)): print "TestrunInfoFile '%s' doesn't exist" % args.testruninfo_file return 1 - - GlobalObj.atfdir = atfdir + + GlobalObj.testrunid = os.getpid() + GlobalObj.atfdir = atfdir GlobalObj.testruninfo_file = testruninfo_abspath GlobalObj.detaillog_file = args.detaillog_file GlobalObj.detaillog_level = args.detaillog_level @@ -29,7 +30,7 @@ def initialize(args): GlobalObj.stdoutlog_level = args.stdoutlog_level GlobalObj.summarylog_file = args.summarylog_file GlobalObj.summarylog_level = args.summarylog_level - + GlobalObj.attach_timestamp = args.timestamp return 0 __all__ = ['initialize'] |