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 /libs/utils | |
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 'libs/utils')
-rw-r--r-- | libs/utils/atfutils.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/utils/atfutils.py b/libs/utils/atfutils.py index b6f5174..b5fa16d 100644 --- a/libs/utils/atfutils.py +++ b/libs/utils/atfutils.py @@ -7,6 +7,7 @@ *) set_active_volume """ import re +import time import inspect from atfglobals import GlobalObj @@ -178,3 +179,10 @@ def get_active_volume(): if active_volume is None: logger.error("Active Volume not set in the TestEnvironment") return active_volume + +def attach_timestamp(filename): + """ + """ + timestamp = time.strftime("%Y_%m_%d_%H_%M_%S") + new_filename = '.'.join([filename, timestamp]) + return new_filename |