[OE-core] [PATCH v4 2/2] selftests: add tests for INCOMPATIBLE_LICENSE

Burton, Ross ross.burton at intel.com
Tue Jun 11 14:57:23 UTC 2019


On Tue, 11 Jun 2019 at 15:56, Quentin Schulz
<quentin.schulz at streamunlimited.com> wrote:
> Also, I factored out everything into a function that shouldn't be run as
> a test but when doing:
> oe-selftest --run-tests incompatible_lic.IncompatibleLicenseTests
> it tries to run the function and thus fails the test. Is that okay? if
> not, how do you usually proceed?

So Python unittest's behaviour is that any function called test_*() is
a test case and is executed, so just don't name any helper functions
like this test_*.

Ross


More information about the Openembedded-core mailing list