<p>srs_andre has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-gsm-tester/+/24048">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">rfemu_srsenb_stdin: catch exception in rfemu and log error<br><br>not handling the exception causes all following tests to<br>fail.<br><br>Change-Id: I496313ef8412c8cb18a3c2cb32c52a3b5a672853<br>---<br>M src/osmo_gsm_tester/obj/rfemu_srsenb_stdin.py<br>1 file changed, 4 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/48/24048/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo_gsm_tester/obj/rfemu_srsenb_stdin.py b/src/osmo_gsm_tester/obj/rfemu_srsenb_stdin.py</span><br><span>index e4aec19..3f96b8b 100644</span><br><span>--- a/src/osmo_gsm_tester/obj/rfemu_srsenb_stdin.py</span><br><span>+++ b/src/osmo_gsm_tester/obj/rfemu_srsenb_stdin.py</span><br><span>@@ -44,7 +44,10 @@</span><br><span>     def set_attenuation(self, db):</span><br><span>         msg_str = 'cell_gain %d %f' % (self.cell_id, -db)</span><br><span>         self.dbg('sending stdin msg: "%s"' % msg_str)</span><br><span style="color: hsl(0, 100%, 40%);">-        self.enb.process.stdin_write(msg_str + '\n')</span><br><span style="color: hsl(120, 100%, 40%);">+        try:</span><br><span style="color: hsl(120, 100%, 40%);">+            self.enb.process.stdin_write(msg_str + '\n')</span><br><span style="color: hsl(120, 100%, 40%);">+        except Exception as e:</span><br><span style="color: hsl(120, 100%, 40%);">+            self.log(repr(e))</span><br><span> </span><br><span>     def get_max_attenuation(self):</span><br><span>         return 200 # maximum cell_gain value in srs. Is this correct value?</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-gsm-tester/+/24048">change 24048</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-gsm-tester/+/24048"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-gsm-tester </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I496313ef8412c8cb18a3c2cb32c52a3b5a672853 </div>
<div style="display:none"> Gerrit-Change-Number: 24048 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: srs_andre <andre@softwareradiosystems.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>