srs_andre has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-gsm-tester/+/22037 )


Change subject: iperf3: return 0 if iperf results can't be read back
......................................................................

iperf3: return 0 if iperf results can't be read back

usually the calling code, i.e. the test, will use the result
of the iperf run to check against a threshold. for that to
work the return value can't be None.

Change-Id: I5a8fe32f0a2bb676dbb80dad500bc6c63c176485
---
M src/osmo_gsm_tester/obj/iperf3.py
1 file changed, 1 insertion(+), 1 deletion(-)



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

diff --git a/src/osmo_gsm_tester/obj/iperf3.py 
b/src/osmo_gsm_tester/obj/iperf3.py
index 4785f78..6571491 100644
--- a/src/osmo_gsm_tester/obj/iperf3.py
+++ b/src/osmo_gsm_tester/obj/iperf3.py
@@ -76,7 +76,7 @@
         return recv['bits_per_second']/1e6
     except Exception as e:
         print("Exception while using iperf3 results: %r" % (repr(result)))
-        pass
+        return 0

 class IPerf3Server(log.Origin):


--
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/22037
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Change-Id: I5a8fe32f0a2bb676dbb80dad500bc6c63c176485
Gerrit-Change-Number: 22037
Gerrit-PatchSet: 1
Gerrit-Owner: srs_andre <an...@softwareradiosystems.com>
Gerrit-MessageType: newchange

Reply via email to