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/.
srs_andre gerrit-no-reply at lists.osmocom.orgsrs_andre has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-gsm-tester/+/24048 )
Change subject: rfemu_srsenb_stdin: catch exception in rfemu and log error
......................................................................
rfemu_srsenb_stdin: catch exception in rfemu and log error
not handling the exception causes all following tests to
fail.
Change-Id: I496313ef8412c8cb18a3c2cb32c52a3b5a672853
---
M src/osmo_gsm_tester/obj/rfemu_srsenb_stdin.py
1 file changed, 4 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/48/24048/1
diff --git a/src/osmo_gsm_tester/obj/rfemu_srsenb_stdin.py b/src/osmo_gsm_tester/obj/rfemu_srsenb_stdin.py
index e4aec19..3f96b8b 100644
--- a/src/osmo_gsm_tester/obj/rfemu_srsenb_stdin.py
+++ b/src/osmo_gsm_tester/obj/rfemu_srsenb_stdin.py
@@ -44,7 +44,10 @@
def set_attenuation(self, db):
msg_str = 'cell_gain %d %f' % (self.cell_id, -db)
self.dbg('sending stdin msg: "%s"' % msg_str)
- self.enb.process.stdin_write(msg_str + '\n')
+ try:
+ self.enb.process.stdin_write(msg_str + '\n')
+ except Exception as e:
+ self.log(repr(e))
def get_max_attenuation(self):
return 200 # maximum cell_gain value in srs. Is this correct value?
--
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/24048
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: I496313ef8412c8cb18a3c2cb32c52a3b5a672853
Gerrit-Change-Number: 24048
Gerrit-PatchSet: 1
Gerrit-Owner: srs_andre <andre at softwareradiosystems.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210503/002763a5/attachment.htm>