Bug 11847 - Add an option to oe-selftest to run all tests except for [...]
Summary: Add an option to oe-selftest to run all tests except for [...]
Status: RESOLVED FIXED
Alias: None
Product: Build Testing
Classification: QA/Testing
Component: general (show other bugs)
Version: 2.4
Hardware: x86 Multiple
: Medium+ enhancement
Target Milestone: 2.4 M3
Assignee: Leonardo Sandoval Gonzalez
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks: 11848
  Show dependency tree
 
Reported: 2017-07-27 16:08 UTC by Joshua Lock
Modified: 2017-08-16 19:41 UTC (History)
2 users (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 Joshua Lock 2017-07-27 16:08:00 UTC
It would be great if we could run all oe-selftest tests barring those specified as an option. Something like:

    oe-selftest -R distrodata

We'd like this because the distrodata selftests are prone to transient failures due to networking issues. We'd like to run these separately on the autobuilder with a lower BB_NUMBER_THREADS, likely even less frequently (automated once per week).

If we do so we'd also remove the distrodata.Distrodata.test_checkpkg test from the nightly-oe-selftest builder, but there's no easy way to run all tests except that one.

Maintaining a list of tests we do want to run for the nightly-oe-selftest buildset is prone to bitrotting and missing out on valuable testing.
Comment 1 Leonardo Sandoval Gonzalez 2017-08-03 14:02:44 UTC
For some reason, I needed to send the patch a second time and this time it arrived to the ML

http://lists.openembedded.org/pipermail/openembedded-core/2017-August/140441.html
Comment 2 Aníbal Limón 2017-08-07 21:47:10 UTC
(In reply to comment #0)
> It would be great if we could run all oe-selftest tests barring those
> specified as an option. Something like:
> 
>     oe-selftest -R distrodata
> 
> We'd like this because the distrodata selftests are prone to transient
> failures due to networking issues. We'd like to run these separately on the
> autobuilder with a lower BB_NUMBER_THREADS, likely even less frequently
> (automated once per week).
> 
> If we do so we'd also remove the distrodata.Distrodata.test_checkpkg test
> from the nightly-oe-selftest builder, but there's no easy way to run all
> tests except that one.
> 
> Maintaining a list of tests we do want to run for the nightly-oe-selftest
> buildset is prone to bitrotting and missing out on valuable testing.

The option is good to have it, for a quick fix you can avoid run distrodata tests moving the module to starts with _ (_distrodata), this will avoid to run the test module when request --run-all-tests.

Anibal
Comment 3 Leonardo Sandoval Gonzalez 2017-08-16 19:41:11 UTC
merged at master:

e40eeaa790: Leonardo Sandoval: Fri Aug 11 00:08:31 2017 +0100: context: Include a command line argument to run all except certain tests