Remove unused keyword left behind after refactoring 72/35072/4
authorJozef Behran <jbehran@cisco.com>
Fri, 19 Feb 2016 12:44:17 +0000 (13:44 +0100)
committerGerrit Code Review <gerrit@opendaylight.org>
Sat, 20 Feb 2016 02:22:40 +0000 (02:22 +0000)
The "Wait_Until_Prompt" was used in the early versions of
the suite but it turned out to be not necessary - similar
functionality already exists in SSHLibrary. But the keyword
was left behind, unused.

Change-Id: I1baa000bf044de5045d9643ac38ccc6352250ab0
Signed-off-by: Jozef Behran <jbehran@cisco.com>
csit/suites/netconf/restperfclient/performance.robot

index 7403726883f5708e3d5bc187859a4adbdcf43e74..664aa2d85920ba290b00668600eed3dbe7afb3c1 100644 (file)
@@ -15,11 +15,6 @@ Documentation     netconf-restperfclient Update performance test suite.
 ...               out to turn the first request sent to a "create" request and the
 ...               remaining requests to "update" requests (due to how the testtool device
 ...               behavior is implemented).
-...
-...               TODO: The "Wait_Until_Prompt" keyword shall probably be turned into a
-...               reusable piece and moved into SSHKeywords. There is a bunch of other
-...               test suites (e.g. PCEP, BGP) which contain the same or similar pieces of
-...               code.
 Suite Setup       Setup_Everything
 Suite Teardown    Teardown_Everything
 Test Setup        SetupUtils.Setup_Test_With_Logging_And_Fast_Failing
@@ -118,11 +113,3 @@ Teardown_Everything
     RequestsLibrary.Delete_All_Sessions
     SSHLibrary.Switch_Connection    ${testtool}
     BuiltIn.Run_Keyword_And_Ignore_Error    NetconfKeywords.Stop_Testtool
-
-Wait_Until_Prompt
-    [Documentation]    Wait until prompt appears or timeout occurs. When timeout occurs, send Ctrl-C and then wait for the prompt again.
-    ...    This is necessary because the restperfclient can crash and hang, requiring that Ctrl-C character to get rid of it for good.
-    ${status}    ${result}=    BuiltIn.Run_Keyword_And_Ignore_Error    SSHLibrary.Read_Until_Prompt
-    Return_From_Keyword_If    '${status}' == 'PASS'
-    Utils.Write_Bare_Ctrl_C
-    SSHLibrary.Read_Until_Prompt