From: Faseela K Date: Fri, 14 Dec 2018 09:59:17 +0000 (+0530) Subject: Broken COE patch test X-Git-Tag: pre-potassium~432 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F90%2F78790%2F2;p=integration%2Ftest.git Broken COE patch test If we run COE patch test from netvirt, it is currently not working, as the refspec is getting used for building golang binaries from COE project. Change-Id: If90519fb035d01b4c18d3a1abcc5f06e92e8074a Signed-off-by: Faseela K --- diff --git a/csit/libraries/Coe.robot b/csit/libraries/Coe.robot index a9462b4314..5ec712dfad 100644 --- a/csit/libraries/Coe.robot +++ b/csit/libraries/Coe.robot @@ -73,7 +73,12 @@ Configuration Playbook OperatingSystem.Create File ${WATCHER_COE} ${watcher} SSHKeywords.Copy_File_To_Remote_System ${K8s_MASTER_IP} ${WATCHER_COE} ${USER_HOME} OperatingSystem.Copy File ${PLAYBOOK_FILE} ${USER_HOME} - ${play_output} = OperatingSystem.Run ansible-playbook -v ${USER_HOME}/coe_play.yaml -i ${USER_HOME}/hosts.yaml --extra-vars '{"gerrit_branch":"FETCH_HEAD","gerrit_refspec":"${GERRIT_REFSPEC}"}' + ${gerrit_ref_spec} = BuiltIn.Set Variable If '${GERRIT_PROJECT}' == 'coe' ${GERRIT_REFSPEC} HEAD + Run Coe Playbook ${gerrit_ref_spec} + +Run Coe Playbook + [Arguments] ${gerrit_ref_spec} + ${play_output} = OperatingSystem.Run ansible-playbook -v ${USER_HOME}/coe_play.yaml -i ${USER_HOME}/hosts.yaml --extra-vars '{"gerrit_branch":"FETCH_HEAD","gerrit_refspec":"${gerrit_ref_spec}"}' BuiltIn.Log ${play_output} Modifying templates in playbook