Change in osmo-gsm-tester[master]: iperf3: implement str() method in iperf3 server

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Mon Nov 19 09:40:27 UTC 2018


Pau Espin Pedrol has submitted this change and it was merged. ( https://gerrit.osmocom.org/11772 )

Change subject: iperf3: implement str() method in iperf3 server
......................................................................

iperf3: implement str() method in iperf3 server

This way it can be logged easily during test runs.

Change-Id: I699f0a9a8d263ac9f02ea9594a28ca9fd8d48db6
---
M src/osmo_gsm_tester/iperf3.py
1 file changed, 3 insertions(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/osmo_gsm_tester/iperf3.py b/src/osmo_gsm_tester/iperf3.py
index d0cf806..8f0cddb 100644
--- a/src/osmo_gsm_tester/iperf3.py
+++ b/src/osmo_gsm_tester/iperf3.py
@@ -76,6 +76,9 @@
     def port(self):
         return self._port
 
+    def __str__(self):
+        return "%s:%u" %(self.addr(), self.port())
+
     def running(self):
         return not self.process.terminated()
 

-- 
To view, visit https://gerrit.osmocom.org/11772
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I699f0a9a8d263ac9f02ea9594a28ca9fd8d48db6
Gerrit-Change-Number: 11772
Gerrit-PatchSet: 2
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181119/06fac7e2/attachment.html>


More information about the gerrit-log mailing list