[oe-commits] [openembedded-core] 19/36: scripts/oe-selftest: Improve listing by reducing unneeded spacing
git at git.openembedded.org
git at git.openembedded.org
Wed May 18 22:25:15 UTC 2016
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit 312ca8ce2682b820fd5ec91696836f944b3a8c26
Author: Humberto Ibarra <humberto.ibarra.lopez at intel.com>
AuthorDate: Wed May 18 11:17:59 2016 -0500
scripts/oe-selftest: Improve listing by reducing unneeded spacing
The --list-tests option assumes a terminal of 150 characters wide,
which is clearly wrong. The output for this command is messy and
hard to understand for lower widths. Every command should look
good in a 80 characters terminal.
Unfortunately, this can't be done at the moment. The bad naming of
testcases have made the test names incredibly long.
This patch reduces spacing between columns and shows the tests
names in a concise and understandable way. The format is even the
same one required for running a testcase. Once the testcase naming
improves, this output will look even better.
[Yocto #9534]
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
scripts/oe-selftest | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/scripts/oe-selftest b/scripts/oe-selftest
index 5e23ef0..8cc2095 100755
--- a/scripts/oe-selftest
+++ b/scripts/oe-selftest
@@ -338,14 +338,14 @@ def list_tests():
ts = get_all_tests()
- print '%-4s\t%-20s\t%-60s\t%-25s\t%-20s' % ('id', 'tag', 'name', 'class', 'module')
- print '_' * 150
+ print '%-4s\t%-10s\t%-50s' % ('id', 'tag', 'test')
+ print '_' * 80
for t in ts:
if isinstance(t.tctag, (tuple, list)):
- print '%-4s\t%-20s\t%-60s\t%-25s\t%-20s' % (t.tcid, ', '.join(t.tctag), t.tcname, t.tcclass, t.tcmodule)
+ print '%-4s\t%-10s\t%-50s' % (t.tcid, ', '.join(t.tctag), '.'.join([t.tcmodule, t.tcclass, t.tcname]))
else:
- print '%-4s\t%-20s\t%-60s\t%-25s\t%-20s' % (t.tcid, t.tctag, t.tcname, t.tcclass, t.tcmodule)
- print '_' * 150
+ print '%-4s\t%-10s\t%-50s' % (t.tcid, t.tctag, '.'.join([t.tcmodule, t.tcclass, t.tcname]))
+ print '_' * 80
print 'Total found:\t %s' % len(ts)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list