Bug 9708

Summary: oe-selftest --list-tests with options to control fields shown
Product: [QA/Testing] Build Testing Reporter: Benjamin Esquivel <benjamin.esquivel>
Component: generalAssignee: Aníbal Limón <anibal.limon>
Status: RESOLVED OBSOLETE QA Contact:
Severity: enhancement    
Priority: Medium CC: leonardo.sandoval.gonzalez
Version: unspecified   
Target Milestone: 2.4 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on: 8938    
Bug Blocks:    

Description Benjamin Esquivel 2016-06-03 22:16:02 UTC
Currently, the oe-selftest --list-tests has a fixed set of columns to show like:

...
id  	tag       	test                                              
________________________________________________________________________________
1195	None      	bblayers.BitbakeLayers.test_bitbakelayers_add_remove
95  	None      	bblayers.BitbakeLayers.test_bitbakelayers_flatten 
93  	None      	bblayers.BitbakeLayers.test_bitbakelayers_showappends
...

most, if not all of the test cases have a tag = None. This is a case where you would like to de-select showing the tag column.

The proposal is to make a default output of a single column called test_name (renamed from 'test') and drop the id and tag columns out of the output.

Additionally, to not introduce a de-feature and be able to later include more columns, have a new argument into oe-selftest: --format. See references in git log help (--format option) and in systemd's journalctl --output option.
Comment 1 Humberto Ibarra 2016-07-12 20:29:09 UTC
The refactoring being done for 8938 changes the structure for listing and filtering. Filtering would also be adapted depending on 9921.

Require 8938 for a better syntax and 9921 for a defined structure of tests.
Comment 2 Leonardo Sandoval Gonzalez 2016-08-26 14:45:58 UTC
Moving to next enhancement milestone (2.3 M1) due to time contrains.
Comment 3 Leonardo Sandoval Gonzalez 2016-09-19 20:52:12 UTC
Removing unnecessary dependency.
Comment 4 Aníbal Limón 2017-08-14 14:26:32 UTC
See comments on bug [1], for close this as obsolete.

[1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=8938#c11