summaryrefslogtreecommitdiffstats
path: root/atf.py
diff options
context:
space:
mode:
authorshwetha <shwetha.h.panduranga@redhat.com>2012-03-06 16:14:34 +0530
committershwetha <shwetha.h.panduranga@redhat.com>2012-03-06 16:15:29 +0530
commit4a0b5f9d0e0266c8c67b5faa76599fc78a247437 (patch)
treef50ab57eb319f5ef18d08c8ae0db779a5b4d2287 /atf.py
parent0c9076add5f357b4278c4720c37518280a13e43e (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 'atf.py')
-rwxr-xr-xatf.py36
1 files changed, 15 insertions, 21 deletions
diff --git a/atf.py b/atf.py
index 7ee9d13..3202701 100755
--- a/atf.py
+++ b/atf.py
@@ -9,15 +9,15 @@ import atfexecute
import pdb
if __name__ == "__main__":
-
+
argparser = argparse.ArgumentParser(
prog='atf',
- description="Runs GlusterFS Functional/Regression Test Suite",
+ description="Runs GlusterFS Functional/Regression Test Suite",
epilog="Report Bugs to dl-qa@gluster.com")
argparser.add_argument('--atfdir', required=True, type=str,
help="Absolute path of directory where automation framework is installed")
-
+
argparser.add_argument('--testruninfo-file', required=True, type=str,
help="TestRunInfo FileName")
@@ -26,25 +26,29 @@ if __name__ == "__main__":
help="SummaryLog Filename")
argparser.add_argument('--summarylog-level', type=str,
- default='INFO',
+ default='INFO',
help="SummaryLog LogLevel")
-
+
argparser.add_argument('--detaillog-file', type=str,
default="detaillog.out",
help="DetailLog Filename")
-
+
argparser.add_argument('--detaillog-level', type=str,
- default='DEBUG',
+ default='DEBUG',
help="DetailLog LogLevel")
-
+
+ argparser.add_argument('--timestamp', type=str,
+ default='yes',
+ help="Attach timestamp to Summary/DetailLog Files: yes|no")
+
argparser.add_argument('--stdout-dolog', type=str,
- default='yes',
+ default='yes',
help="Log to Stdout yes|no")
argparser.add_argument('--stdoutlog-level', type=str,
default='INFO',
help="StdoutLog LogLevel")
-
+
args = argparser.parse_args()
if atfinit.initialize(args):
@@ -52,20 +56,10 @@ if __name__ == "__main__":
if atfsetup.setup():
exit(1)
-
+
if atfexecute.execute():
exit(1)
else:
exit(0)
-
-
-
-
-
-
-
-
-
-