Change in osmo-gsm-tester[master]: iperf3: Avoid creating empty log file

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/.

pespin gerrit-no-reply at lists.osmocom.org
Mon Jul 13 17:24:31 UTC 2020


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


Change subject: iperf3: Avoid creating empty log file
......................................................................

iperf3: Avoid creating empty log file

Since a while ago, we avoid by default using the --logfile param to log
the json output to a different file, in order to stay compatible with
older versions of iperf3.
However, the local logfile was still being created, and was not
overwritten with the remote file with content because there's none
created remotely (due to reasons explained above).

Change-Id: I218ec28dc65febc7bd083d6d15854319bf4f3daf
---
M src/osmo_gsm_tester/obj/iperf3.py
1 file changed, 2 insertions(+), 2 deletions(-)



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

diff --git a/src/osmo_gsm_tester/obj/iperf3.py b/src/osmo_gsm_tester/obj/iperf3.py
index d61dbb1..9e084aa 100644
--- a/src/osmo_gsm_tester/obj/iperf3.py
+++ b/src/osmo_gsm_tester/obj/iperf3.py
@@ -117,7 +117,7 @@
         self.log('Starting iperf3-srv')
         self.log_copied = False
         self.run_dir = util.Dir(self.testenv.test().get_run_dir().new_dir(self.name()))
-        self.log_file = self.run_dir.new_file(IPerf3Server.LOGFILE)
+        self.log_file = self.run_dir.new_child(IPerf3Server.LOGFILE)
         if self.runs_locally():
             self.start_locally()
         else:
@@ -258,7 +258,7 @@
         self.log('Preparing iperf3-client connecting to %s:%d (proto=%s,time=%ds)' % (self.server.addr(), self.server.port(), self._proto, time_sec))
         self.log_copied = False
         self.run_dir = util.Dir(self.testenv.test().get_run_dir().new_dir(self.name()))
-        self.log_file = self.run_dir.new_file(IPerf3Client.LOGFILE)
+        self.log_file = self.run_dir.new_child(IPerf3Client.LOGFILE)
 
         popen_args = ('iperf3', '-c',  self.server.addr(),
                       '-p', str(self.server.port()), '-J',

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/19241
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: I218ec28dc65febc7bd083d6d15854319bf4f3daf
Gerrit-Change-Number: 19241
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200713/13c255cf/attachment.htm>


More information about the gerrit-log mailing list