rfemu_srsenb_stdin: catch exception in rfemu and log error
not handling the exception causes all following tests to fail. Change-Id: I496313ef8412c8cb18a3c2cb32c52a3b5a672853
This commit is contained in:
parent
9e025a36a9
commit
e82f44cb49
|
@ -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)
|
||||
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?
|
||||
|
|
Loading…
Reference in New Issue