aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo_gsm_tester
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-07-13 19:07:20 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2020-07-13 19:07:29 +0200
commit6b9a50e2e12423e2a3f5181bf24294d1297d7ab7 (patch)
treeb182cb35ccacab167005baacb7b9132bc89ee4ac /src/osmo_gsm_tester
parent0f7f265114742ba2ca9e88c0dfb94ffe5537d72e (diff)
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
Diffstat (limited to 'src/osmo_gsm_tester')
-rw-r--r--src/osmo_gsm_tester/obj/iperf3.py4
1 files changed, 2 insertions, 2 deletions
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 @@ class IPerf3Server(log.Origin):
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 @@ class IPerf3Client(log.Origin):
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',