Change in pysim[master]: pySim-shell: separate export summary with a headline

dexter gerrit-no-reply at lists.osmocom.org
Mon Apr 19 19:49:54 UTC 2021


dexter has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/23803 )


Change subject: pySim-shell: separate export summary with a headline
......................................................................

pySim-shell: separate export summary with a headline

the export summary is printed after the log entry for the last file
without separation. This is confusing because it looks like if the
summary would refer to the last file only. Lets add a headline to make
clear that the last few lines are the "Export summary"

Change-Id: I90771e525b2b114bdb41a8e90d298ca991c09c3d
Related: OS#4963
---
M pySim-shell.py
1 file changed, 6 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/03/23803/1

diff --git a/pySim-shell.py b/pySim-shell.py
index a8db263..c702c61 100755
--- a/pySim-shell.py
+++ b/pySim-shell.py
@@ -288,6 +288,12 @@
 			self.export(opts.filename, context)
 		else:
 			self.walk(0, self.export, context)
+
+		self._cmd.poutput("#" * 80)
+		headline  = "Export summary" + " " * 80
+		self._cmd.poutput("# " + headline[0:77] + "#")
+		self._cmd.poutput("#" * 80)
+
 		self._cmd.poutput("# total files visited: %u" % context['COUNT'])
 		self._cmd.poutput("# bad files:           %u" % context['ERR'])
 		for b in context['BAD']:

-- 
To view, visit https://gerrit.osmocom.org/c/pysim/+/23803
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I90771e525b2b114bdb41a8e90d298ca991c09c3d
Gerrit-Change-Number: 23803
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210419/4977448b/attachment.htm>


More information about the gerrit-log mailing list