aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Puschmann <andre@softwareradiosystems.com>2021-04-10 15:35:44 +0200
committerAndre Puschmann <andre@softwareradiosystems.com>2021-05-03 13:43:44 +0200
commite82f44cb4938aac6e31aec480a2ce440f6218a43 (patch)
treeb2f0812258c11bb2ecb0f03cc8cffe5b22d58517
parent9e025a36a914e37f7269f4ace081541dbf680450 (diff)
rfemu_srsenb_stdin: catch exception in rfemu and log error
not handling the exception causes all following tests to fail. Change-Id: I496313ef8412c8cb18a3c2cb32c52a3b5a672853
-rw-r--r--src/osmo_gsm_tester/obj/rfemu_srsenb_stdin.py5
1 files changed, 4 insertions, 1 deletions
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 @@ class RFemulationSrsStdin(RFemulation):
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?