<p><a href="https://gerrit.osmocom.org/c/osmo-gsm-tester/+/18986">View Change</a></p><p>7 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-gsm-tester/+/18986/1/src/osmo_gsm_tester/obj/srslte_common.py">File src/osmo_gsm_tester/obj/srslte_common.py:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-gsm-tester/+/18986/1/src/osmo_gsm_tester/obj/srslte_common.py@5">Patch Set #1, Line 5:</a> <code style="font-family:monospace,monospace"># Author: Pau Espin Pedrol <pespin@sysmocom.de></code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I'm not the author ;)</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-gsm-tester/+/18986/1/src/osmo_gsm_tester/obj/srslte_common.py@20">Patch Set #1, Line 20:</a> <code style="font-family:monospace,monospace">class srslte_common():</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">inherit from log.Origin</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-gsm-tester/+/18986/1/src/osmo_gsm_tester/obj/srslte_common.py@26">Patch Set #1, Line 26:</a> <code style="font-family:monospace,monospace">          from kpi_analyzer import kpi_analyzer</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">So this kpi_analyzer is out of tree? What does it do exactly? can't it be mainlained? Please document so in the code.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-gsm-tester/+/18986/1/src/osmo_gsm_tester/obj/srslte_common.py@28">Patch Set #1, Line 28:</a> <code style="font-family:monospace,monospace">          if self.log_file is not None:</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">add self.log_file = None to the constructor, this way it's easy to see which fields are expected to be set by subclasses.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-gsm-tester/+/18986/1/src/osmo_gsm_tester/obj/srslte_common.py@29">Patch Set #1, Line 29:</a> <code style="font-family:monospace,monospace">              kpis["log_" + self.name()] = analyzer.get_kpi_from_logfile(self.log_file)</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">if you use self.name(), you definetly want to inherit from log.Origin here.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-gsm-tester/+/18986/1/src/osmo_gsm_tester/obj/srslte_common.py@30">Patch Set #1, Line 30:</a> <code style="font-family:monospace,monospace">          if self.process.get_output_file('stdout') is not None:</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">self.process = None in constructor</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-gsm-tester/+/18986/1/src/osmo_gsm_tester/obj/srslte_common.py@35">Patch Set #1, Line 35:</a> <code style="font-family:monospace,monospace">          print("Can't load KPI analyzer module.")</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">self.log() (or self.err())</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-gsm-tester/+/18986">change 18986</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/+/18986"/><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: I28226a375f9ac4e08424c488062ae6a74a19af92 </div>
<div style="display:none"> Gerrit-Change-Number: 18986 </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-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 25 Jun 2020 11:26:07 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>