Install ipaddr module in Tools VM 19/90619/4
authorVenkatrangan Govindarajan <vgovindarajan@luminanetworks.com>
Wed, 24 Jun 2020 08:25:43 +0000 (13:55 +0530)
committerJamo Luhrsen <jluhrsen@gmail.com>
Thu, 25 Jun 2020 01:20:23 +0000 (01:20 +0000)
The ipaddr.py was removed in an earlier merged patch, causing
the tests to fail. This patch uses pip to install ipaddr to TOOLS VM.

JIRA: INTTEST-105
Signed-off-by: Venkatrangan Govindarajan <vgovindarajan@luminanetworks.com>
Change-Id: Id0dcfa0b59f1326baa3a0999ac0a7647dc26a0fa

csit/libraries/SSHKeywords.robot

index 7fb7ebd1b872962f74a63932aa765a9466a9f5b2..d0bc721435f9b724970fbfa47dbea160e0d9196e 100644 (file)
@@ -143,7 +143,7 @@ Assure_Library_Ipaddr
     [Documentation]    Tests whether ipaddr module is present on ssh-connected machine, Puts ipaddr.py to target_dir if not.
     ${passed} =    Execute_Command_Passes    bash -c 'cd "${target_dir}" && python -c "import ipaddr"'
     BuiltIn.Return_From_Keyword_If    ${passed}
-    SSHLibrary.Put_File    ${CURDIR}/ipaddr.py    ${target_dir}/
+    Execute_Command_Passes    bash -c 'pip install ipaddr'
 
 Assure_Library_Counter
     [Arguments]    ${target_dir}=.