From d279c8c12f136ab15b5fefd496c296ef1585c628 Mon Sep 17 00:00:00 2001 From: Yaroslav Brustinov Date: Mon, 23 May 2016 15:30:21 +0300 Subject: replace t-rex to TRex regression: instead of checking map and reconnecting for eact STL test, do in only for those with disconnect (+revert of commit 0f8e6065f467703b1461e87c3912f8d4bd616807) --- scripts/automation/trex_control_plane/server/trex_server.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts/automation/trex_control_plane/server') diff --git a/scripts/automation/trex_control_plane/server/trex_server.py b/scripts/automation/trex_control_plane/server/trex_server.py index 3dcb3e97..81f3d28f 100755 --- a/scripts/automation/trex_control_plane/server/trex_server.py +++ b/scripts/automation/trex_control_plane/server/trex_server.py @@ -46,7 +46,7 @@ class CTRexServer(object): Parameters ---------- trex_host : str - a string of the t-rex ip address or hostname. + a string of the TRex ip address or hostname. default value: machine hostname as fetched from socket.gethostname() trex_daemon_port : int the port number on which the trex-daemon server can be reached @@ -243,7 +243,7 @@ class CTRexServer(object): logger.error(err_str) return Fault(-33, err_str) - def stop_handler (self, signum, frame): + def stop_handler (self, *args, **kwargs): logger.info("Daemon STOP request detected.") if self.is_running(): # in case TRex process is currently running, stop it before terminating server process @@ -559,13 +559,13 @@ class CTRex(object): def stop_trex(self): if self.status == TRexStatus.Idle: - # t-rex isn't running, nothing to abort + # TRex isn't running, nothing to abort logger.info("TRex isn't running. No need to stop anything.") if self.errcode is not None: # some error occurred, notify client despite TRex already stopped return Fault(self.errcode, self.verbose_status) # raise at client relevant exception, depending on the reason the error occured return False else: - # handle stopping t-rex's run + # handle stopping TRex's run self.session.join() logger.info("TRex session has been successfully aborted.") return True -- cgit 1.2.3-korg