-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgluster_test_main.py
More file actions
37 lines (28 loc) · 965 Bytes
/
gluster_test_main.py
File metadata and controls
37 lines (28 loc) · 965 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
"""
This module is the gluster_test_main module which
takes care of:
1) Config file parsing (by gluster_test_parser).
2) Tests-to-run list preparation (by test_list_builder).
3) Invocation of the component which manages test execution (test_runner).
"""
import argparse
from gluster_params_handler import ParamsHandler
def pars_args():
"""Parse arguments with argparse module
"""
parser = argparse.ArgumentParser(
description='Create config hashmap based on config file')
parser.add_argument("-c", "--config",
help="Config file(s) to read.",
action="store", dest="config_file",
default=None)
return parser.parse_args()
def main():
"""
All the apis for the required functions will be called here
"""
args = pars_args()
if args.config_file:
ParamsHandler.get_config_hashmap(args.config_file)
if __name__ == '__main__':
main()