Bug 9243

Summary: oe-selftest: long test name affects listing format
Product: [QA/Testing] Build Testing Reporter: Humberto Ibarra <humberto.ibarra.lopez>
Component: generalAssignee: Daniel Istrate <daniel.alexandrux.istrate>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: Medium CC: alexandru.c.georgescu, benjamin.esquivel, bogdanx.a.voiculescu, richard.purdie, ross.burton
Version: 2.1   
Target Milestone: 2.1 M4   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

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.