Change in osmo-gsm-tester[master]: iperf3: server: Avoid copying logfile during cleanup if already copie...

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/+/19242 )


Change subject: iperf3: server: Avoid copying logfile during cleanup if already copied previously
......................................................................

iperf3: server: Avoid copying logfile during cleanup if already copied previously

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



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

diff --git a/src/osmo_gsm_tester/obj/iperf3.py b/src/osmo_gsm_tester/obj/iperf3.py
index 9e084aa..252c55a 100644
--- a/src/osmo_gsm_tester/obj/iperf3.py
+++ b/src/osmo_gsm_tester/obj/iperf3.py
@@ -101,11 +101,12 @@
     def cleanup(self):
         if self.process is None:
             return
-        if self.runs_locally() or not self.logfile_supported:
+        if self.runs_locally() or not self.logfile_supported or self.log_copied:
             return
         # copy back files (may not exist, for instance if there was an early error of process):
         try:
             self.rem_host.scpfrom('scp-back-log', self.remote_log_file, self.log_file)
+            self.log_copied = True
         except Exception as e:
             self.log(repr(e))
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/19242
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: I44e28f326fd476d27eb021922d38e9ca913aec69
Gerrit-Change-Number: 19242
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/8f3f84dd/attachment.htm>


More information about the gerrit-log mailing list