Bug 9243 - oe-selftest: long test name affects listing format
Summary: oe-selftest: long test name affects listing format
Status: RESOLVED FIXED
Alias: None
Product: Build Testing
Classification: QA/Testing
Component: general (show other bugs)
Version: 2.1
Hardware: All Multiple
: Medium minor
Target Milestone: 2.1 M4
Assignee: Daniel Istrate
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-03-11 17:10 UTC by Humberto Ibarra
Modified: 2016-04-14 19:56 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Humberto Ibarra 2016-03-11 17:10:51 UTC
A new test named 'test_layer_git_revisions_are_displayed_and_do_not_fail_without_git_repo' was added with bug 8852. This name is so long that it affects the oe-selftest --list-tests:

.
.
.          
1031	None                	test_version                                                	BitbakeTests             	bbtests             
106 	None                	test_warnings_errors                                        	BitbakeTests             	bbtests             
277 	None                	test_stoptask_behavior                                      	DiskMonTest              	buildoptions        
563 	None                	test_directfb                                               	BuildImagesTest          	buildoptions        
1421	None                	test_layer_git_revisions_are_displayed_and_do_not_fail_without_git_repo	SanityOptionsTest        	buildoptions        
927 	None                	test_options_warnqa_errorqa_switch                          	SanityOptionsTest        	buildoptions        
None	None                	test_sanity_unsafe_binary_references                        	SanityOptionsTest        	buildoptions
.
.
.

For this test the class and module columns are pushed to the right. I find the name of this test odd, not sure if it can be changed at this point though. Either way, columns can be aligned farther to the right in case the test name can't be changed.
Comment 2 Daniel Istrate 2016-03-17 12:01:22 UTC
Renamed the testcase from 'test_layer_git_revisions_are_displayed_and_do_not_fail_without_git_repo' to 'test_layer_without_git_dir' which is shorter.

Updated the table format for --list-tests and --list-tests-by so the content is nicely aligned.

Extra: fixed --list-tests-by tag option which was broke by 35be67951305950ba797dc2efddbc7d88fc0556a.
Comment 3 Ross Burton 2016-04-14 19:56:37 UTC
Fixed in 7bd990e635e0b41f4ab9d71695a0309b5302178f.