def do_kill(self, session):
        """Terminate the specified test session

        For STC ReST API version >= 2.30, this forcefully terminates the test
        session on the server.  Otherwise, behavior is same as delete.

        Synopsis:
            kill session_name

        Example:
            kill so939 - joe

        """
        if not session:
            print('specify a session to join')
            return

        if session.endswith(' -') and session.count('-') == 1:
            session += ' '
        if self._not_session(session):
            return

        print('...waiting for session to end...')
        try:
            self._stc.end_session('kill', session)
        except Exception as e:
            print(e)
            return

        self._update_sessions()
        print('Terminated test session', session)
def do_kill ( self , session ) : if not session : print ( 'specify a session to join' ) return if session . endswith ( ' -' ) and session . count ( '-' ) == 1 : session += ' ' if self . _not_session ( session ) : return print ( '...waiting for session to end...' ) try : self . _stc . end_session ( 'kill' , session ) except Exception as e : print ( e ) return self . _update_sessions ( ) print ( 'Terminated test session' , session )
Terminate the specified test session

        For STC ReST API version >= 2.30, this forcefully terminates the test
        session on the server.  Otherwise, behavior is same as delete.

        Synopsis:
            kill session_name

        Example:
            kill so939 - joe