Change in osmo-gsm-tester[master]: suites/4g/ping.py: Overwrite test stdout with ping output

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
Thu Mar 5 17:30:47 UTC 2020


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


Change subject: suites/4g/ping.py: Overwrite test stdout with ping output
......................................................................

suites/4g/ping.py: Overwrite test stdout with ping output

Change-Id: I83403a21c46758132b4fbb930000df67d8650016
---
M src/osmo_gsm_tester/modem.py
M src/osmo_gsm_tester/srs_ue.py
M suites/4g/ping.py
3 files changed, 6 insertions(+), 1 deletion(-)



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

diff --git a/src/osmo_gsm_tester/modem.py b/src/osmo_gsm_tester/modem.py
index 2d539eb..f8a9245 100644
--- a/src/osmo_gsm_tester/modem.py
+++ b/src/osmo_gsm_tester/modem.py
@@ -666,6 +666,7 @@
         proc = process.NetNSProcess(name, self.run_dir.new_dir(name), self.netns(), popen_args,
                                        env={})
         proc.launch_sync()
+        return proc
 
     def setup_context_data_plane(self, ctx_id):
         self.dbg('setup_context_data', path=ctx_id)
diff --git a/src/osmo_gsm_tester/srs_ue.py b/src/osmo_gsm_tester/srs_ue.py
index f90ea32..2cb05a2 100644
--- a/src/osmo_gsm_tester/srs_ue.py
+++ b/src/osmo_gsm_tester/srs_ue.py
@@ -246,6 +246,7 @@
         else:
             proc = self.rem_host.RemoteNetNSProcess(name, self.netns(), popen_args, env={})
         proc.launch_sync()
+        return proc
 
     def verify_metric(self, value, operation='avg', metric='dl_brate', criterion='gt'):
         # file is not properly flushed until the process has stopped.
diff --git a/suites/4g/ping.py b/suites/4g/ping.py
index b44ff84..17eee78 100755
--- a/suites/4g/ping.py
+++ b/suites/4g/ping.py
@@ -19,4 +19,7 @@
 wait(ue.is_connected, None)
 print('UE is attached')
 
-ue.run_netns_wait('ping', ('ping', '-c', '10', epc.tun_addr()))
+proc = ue.run_netns_wait('ping', ('ping', '-c', '10', epc.tun_addr()))
+output = proc.get_stdout()
+print(output)
+test.set_report_stdout(output)

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/17388
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: I83403a21c46758132b4fbb930000df67d8650016
Gerrit-Change-Number: 17388
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/20200305/83b1a358/attachment.htm>


More information about the gerrit-log mailing list