Add PIP installation command into notifications test suite 91/36491/4
authorJozef Behran <jbehran@cisco.com>
Mon, 21 Mar 2016 11:22:46 +0000 (12:22 +0100)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 21 Mar 2016 12:43:32 +0000 (12:43 +0000)
Some tools system images (Ubuntu in particular) don't have
PIP installed and this causes the notifications test suite to
fail. Fix that by adding the code to install PIP before using
it.

Change-Id: Ib871cf554fc9c8e9456e16882d799a532fbf2c8d
Signed-off-by: Jozef Behran <jbehran@cisco.com>
csit/suites/netconf/notifications/notifications_basic.robot

index d8007c877eb8cd3426a8f256338d6f68134c31ad..c6bd7c66405b1d7c37c7ad1590f55daefd7b289b 100644 (file)
@@ -133,6 +133,9 @@ Setup_Everything
     SSHLibrary.Open_Connection    ${TOOLS_SYSTEM_IP}    alias=receiver
     Utils.Flexible_Mininet_Login
     SSHLibrary.Put_File    ${CURDIR}/../../../../tools/wstools/wsreceiver.py
+    ${output_log}    ${error_log}=    SSHLibrary.Execute Command    sudo apt-get install -y python-pip    return_stdout=True    return_stderr=True
+    BuiltIn.Log    ${output_log}
+    BuiltIn.Log    ${error_log}
     ${output_log} =    SSHLibrary.Execute_Command    sudo pip install websocket-client
     BuiltIn.Log    ${output_log}
     ${output_log} =    SSHLibrary.Execute_Command    python -c "help('modules')"