summaryrefslogtreecommitdiffstats
path: root/atf.py
diff options
context:
space:
mode:
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)
-
-
-
-
-
-
-
-
-
-