Skip to content

Commit

Permalink
CI: Fix EchoClientRunner exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
kgiusti committed Oct 22, 2024
1 parent 78a3297 commit cc3d516
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/system_tests_tcp_adaptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,17 +168,17 @@ def __init__(self, test_name, client_n, logger, client, server, size,
delay_close=delay_close)

except Exception as exc:
self.e_client.error = "TCP_TEST TcpAdaptor_runner_%s failed. Exception: %s" % \
(self.name, traceback.format_exc())
self.logger.log(self.e_client.error)
raise Exception(self.e_client.error)
error = f"TCP_TEST TcpAdaptor_runner_{self.name} failed. Exception: {exc}"
self.logger.log(error)
raise

def wait(self):
"""
Block until the client completes. An exception is raised if the client
failed.
"""
self.e_client.wait()
if self.e_client is not None:
self.e_client.wait()


class TcpAdaptorBase(TestCase):
Expand Down

0 comments on commit cc3d516

Please sign in to comment.