X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Flibraries%2FBGPSpeaker.robot;h=9b853bd4b38d130ce4ddac0e288a169af0693932;hb=cc879822cd92a576d57614c28db55c833578ed34;hp=de5f2a8cd29263059848c7b4b2c0358c8d650b11;hpb=6e77611c4377cf0ef7a8cbd6df2074bec0413e19;p=integration%2Ftest.git diff --git a/csit/libraries/BGPSpeaker.robot b/csit/libraries/BGPSpeaker.robot index de5f2a8cd2..9b853bd4b3 100644 --- a/csit/libraries/BGPSpeaker.robot +++ b/csit/libraries/BGPSpeaker.robot @@ -87,3 +87,10 @@ Kill_BGP_Speaker BuiltIn.Return_From_Keyword_If '${status}' == 'PASS' BuiltIn.Log ${message} BuiltIn.Fail The prompt was not seen within timeout period. + +Kill_All_BGP_Speakers + [Documentation] Kill all play.py processes. + ${command}= BuiltIn.Set_Variable ps axf | grep play.py | grep -v grep | awk '{print \"kill -9 \" $1}' | sh + SSHLibrary.Write ${command} + ${output}= SSHLibrary.Read_Until_Prompt + BuiltIn.Log ${output}