X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Frobot%2Fdouble_qemu_setup.robot;h=d8b32bd2fa62c8a8adfd2c9f5905a1e72e1d7d2a;hp=d2d7e9eae18d808e0a8f234e39a297455edeaaf5;hb=86f35c2c60a680b58fca27d9298dd53d02e0138f;hpb=cbd47fbe97945e9dc6584d08cd2266e3a7536a68 diff --git a/resources/libraries/robot/double_qemu_setup.robot b/resources/libraries/robot/double_qemu_setup.robot index d2d7e9eae1..d8b32bd2fa 100644 --- a/resources/libraries/robot/double_qemu_setup.robot +++ b/resources/libraries/robot/double_qemu_setup.robot @@ -10,6 +10,8 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +*** Settings *** +| Library | resources.libraries.python.IPUtil *** Keywords *** | Setup QEMU Vhost and Run @@ -85,15 +87,9 @@ | | ... | | [Arguments] | ${dut_node} | ${vm} | ${qemu_name} | | ${set_node}= | Replace Variables | ${qemu_name}.Qemu Set Node -| | ${sys_status}= | Replace Variables | ${qemu_name}.Qemu System Status | | ${kill}= | Replace Variables | ${qemu_name}.Qemu Kill -| | ${sys_pd}= | Replace Variables | ${qemu_name}.Qemu System Powerdown -| | ${quit}= | Replace Variables | ${qemu_name}.Qemu Quit | | ${clear_socks}= | Replace Variables | ${qemu_name}.Qemu Clear Socks | | Run Keyword | ${set_node} | ${dut_node} -| | ${status} | ${value}= | Run Keyword And Ignore Error | ${sys_status} -| | Run Keyword If | "${status}" == "FAIL" | ${kill} -| | ... | ELSE IF | "${value}" == "running" | ${sys_pd} -| | ... | ELSE | ${quit} +| | Run Keyword | ${kill} | | Run Keyword | ${clear_socks} | | Run Keyword If | ${vm} is not None | Disconnect | ${vm}