DMTF Tools: Handled DMTF Tools Download If Branch Name Was Different
Changes:
- Recently, In DMTF Tools website for few of tools repository stable branch name was changed from master to main.
- Handled Download DMTF Tools keyword, to download dmtf tool from their respective stable branch.
Tested:
- Ran All The Scripts Successfully
Change-Id: I7d86799051a95df4728bd728a9c90bdbe0107dad
Signed-off-by: ganesanb <ganesanb@ami.com>
diff --git a/lib/dmtf_tools_utils.robot b/lib/dmtf_tools_utils.robot
index 6f370a0..2404dee 100644
--- a/lib/dmtf_tools_utils.robot
+++ b/lib/dmtf_tools_utils.robot
@@ -8,20 +8,19 @@
# ignore_err controls Shell Cmd behavior.
${ignore_err} ${0}
-${stable_branch} master
*** Keywords ***
Download DMTF Tool
[Documentation] Git clone tool.
- [Arguments] ${rsv_dir_path} ${rsv_github_url}
+ [Arguments] ${rsv_dir_path} ${rsv_github_url} ${branch_name}
# Description of arguments:
# rsv_dir_path Directory path for rsv tool (e.g. "Redfish-Service-Validator").
# rsv_github_url Github URL link(e.g "https://github.com/DMTF/Redfish-Service-Validator").
${cmd_buf} Catenate rm -rf ${rsv_dir_path} ;
- ... git clone --branch ${stable_branch} ${rsv_github_url} ${rsv_dir_path}
+ ... git clone --branch ${branch_name} ${rsv_github_url} ${rsv_dir_path}
${rc} ${output}= Shell Cmd ${cmd_buf}