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

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Wed Nov 14 16:03:20 UTC 2018


Pau Espin Pedrol has uploaded this change for review. ( 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(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/72/11772/1

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: newchange
Gerrit-Change-Id: I699f0a9a8d263ac9f02ea9594a28ca9fd8d48db6
Gerrit-Change-Number: 11772
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181114/1ece5087/attachment.htm>


More information about the gerrit-log mailing list