aboutsummaryrefslogtreecommitdiffstats
path: root/hdv/redfish/hdv.py
diff options
context:
space:
mode:
authorShubham Mishra <shivam828787@gmail.com>2020-06-22 23:59:35 +0530
committerShubham Mishra <shivam828787@gmail.com>2020-06-28 21:01:43 +0530
commit5ea4ca492b80712a822774cf50ee9864cbbb37ea (patch)
treefe3359ceff3938b5a24a4d38d3b4f9bb77b1088c /hdv/redfish/hdv.py
parentb5609493e9a3366a64bcf5931322bda96d965854 (diff)
Code Refraction
- Removed Excel support completely, new command to start engine is "python hdv.py" - add enbaled flag for every case in cases.yml - converted keys "expected_result" and "key_flag_dict" to yaml from JSON Change-Id: Idaf57c4a15cd7a42bfcdd99164cbb0bddf982026 Signed-off-by: Shubham Mishra <shivam828787@gmail.com>
Diffstat (limited to 'hdv/redfish/hdv.py')
-rw-r--r--hdv/redfish/hdv.py14
1 files changed, 3 insertions, 11 deletions
diff --git a/hdv/redfish/hdv.py b/hdv/redfish/hdv.py
index e06286e..ac5b035 100644
--- a/hdv/redfish/hdv.py
+++ b/hdv/redfish/hdv.py
@@ -34,15 +34,8 @@ def parse_args():
version='%(prog)s 0.1', help="show tool version")
parser.add_argument('--config', type=str, default="./conf/config.yaml",
help="given global config.yaml file")
- parser.add_argument('--file_type', type=str, default="excel",
- help="config file type, [yaml|excel],default is excel")
- parser.add_argument('--case_yaml', type=str, default="./conf/cases.yaml",
- help="case yaml file, uesd if file_type = yaml")
- parser.add_argument('--depends_yaml', type=str,
- default="./conf/depends.yaml",
- help="depends yaml file,uesd if file_type = yaml")
- parser.add_argument('--case_excel', type=str, default="./conf/cases.xlsx",
- help="excel case file used if file_type = excel")
+ parser.add_argument('--case', type=str, default="./conf/cases.yaml",
+ help="case yaml file")
args = parser.parse_args()
return args
@@ -52,8 +45,7 @@ def main():
main function
'''
args = parse_args()
- run_case(args.config, args.case_excel, args.depends_yaml, args.case_yaml,
- args.file_type)
+ run_case(args.config, args.case)
if __name__ == "__main__":