Bug 6453 - Improve oe-selftest command-line handling
Summary: Improve oe-selftest command-line handling
Status: VERIFIED FIXED
Alias: None
Product: Build Testing
Classification: QA/Testing
Component: general (show other bugs)
Version: 1.7
Hardware: All Multiple
: Medium enhancement
Target Milestone: 1.7
Assignee: Stoicescu Cornel
QA Contact: Costin
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-06-16 11:27 UTC by Paul Eggleton
Modified: 2016-02-16 10:55 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Eggleton 2014-06-16 11:27:05 UTC
At the moment oe-selftest doesn't do much with the command line apart from use it to specify tests to run. This still needs to remain the primary function, however it would be a lot friendlier if it also did the following:

1) Show usage information with --help

2) Error out on any invalid options used

3) Offer the ability to list available tests

Command-line checks should be performed before any time-consuming checks on the build configuration. (I'd recommend using argparse or optparse to handle option checking.)
Comment 1 Stoicescu Cornel 2014-07-17 13:09:26 UTC
On the oe-core ML for review.
Comment 2 Stoicescu Cornel 2014-08-27 09:03:33 UTC
Merged in 1.7 master.
Comment 3 Costin 2016-02-16 10:55:34 UTC
Hello,

oe-selftest does all of comment#1's requirements. 
Marking as verified