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/+/18538 ) Change subject: ms_srs: add PRACH and paging counter ...................................................................... ms_srs: add PRACH and paging counter this allows to query the number of PRACH attempts and paging messages received during a test Change-Id: I592ace7c38d98bfbbec5001a3cdfffe21733ef9f --- M src/osmo_gsm_tester/obj/ms_srs.py 1 file changed, 16 insertions(+), 3 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/38/18538/1 diff --git a/src/osmo_gsm_tester/obj/ms_srs.py b/src/osmo_gsm_tester/obj/ms_srs.py index af26011..9cc3e7a 100644 --- a/src/osmo_gsm_tester/obj/ms_srs.py +++ b/src/osmo_gsm_tester/obj/ms_srs.py @@ -345,18 +345,31 @@ proc.launch_sync() return proc - def _get_counter_handover_success(self): - # Match against sample line: "HO success" + def _get_counter_stdout(self, keyword): + # Match stdout against keyword n = 0 stdout_lines = (self.process.get_stdout() or '').splitlines() for l in stdout_lines: - if l == 'HO successful': + if keyword in l: n += 1 return n + def _get_counter_handover_success(self): + return self._get_counter_stdout('HO successful') + + def _get_counter_prach_sent(self): + return self._get_counter_stdout('Random Access Transmission') + + def _get_counter_paging_received(self): + return self._get_counter_stdout('S-TMSI match in paging message') + def get_counter(self, counter_name): if counter_name == 'handover_success': return self._get_counter_handover_success() + if counter_name == 'prach_sent': + return self._get_counter_prach_sent() + if counter_name == 'paging_received': + return self._get_counter_paging_received() raise log.Error('counter %s not implemented!' % counter_name) def verify_metric(self, value, operation='avg', metric='dl_brate', criterion='gt', window=1): -- To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/18538 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: I592ace7c38d98bfbbec5001a3cdfffe21733ef9f Gerrit-Change-Number: 18538 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/20200527/064989ce/attachment.htm>