Fix pep8 violations in inventory_perf.py
[integration/test.git] / test / csit / libraries / Utils.txt
index 7bc26cadb8f75dcda5c4a6555fbb2329eb729455..913ba22c08bddba1cbbd770df8ffc98431ad8b6f 100644 (file)
@@ -4,17 +4,20 @@ Library           ./UtilLibrary.py
 
 *** Variables ***
 ${start}          sudo mn --controller=remote,ip=${CONTROLLER} --topo tree,1 --switch ovsk,protocols=OpenFlow13
+${linux_prompt}   >
 
 *** Keywords ***
 Start Suite
     [Documentation]    Basic setup/cleanup work that can be done safely before any system
     ...    is run.
     Log    Start the test on the base edition
-    Open Connection    ${MININET}    prompt=>    timeout=30s
+    ${mininet_conn_id}=     Open Connection    ${MININET}    prompt=${linux_prompt}    timeout=30s
+    Set Suite Variable  ${mininet_conn_id}
     Login With Public Key    ${MININET_USER}    ${USER_HOME}/.ssh/id_rsa    any
     Write    sudo ovs-vsctl set-manager ptcp:6644
+    Read Until    ${linux_prompt}
     Write    sudo mn -c
-    Read Until    >
+    Read Until    ${linux_prompt}
     Write    ${start}
     Read Until    mininet>
     Sleep    6
@@ -23,9 +26,10 @@ Stop Suite
     [Documentation]    Cleanup/Shutdown work that should be done at the completion of all
     ...    tests
     Log    Stop the test on the base edition
+    Switch Connection   ${mininet_conn_id}
     Read
     Write    exit
-    Read Until    >
+    Read Until    ${linux_prompt}
     Close Connection
 
 Ensure All Nodes Are In Response