[OE-core] [PATCH] recipetool: support python3 instead of python2

Burton, Ross ross.burton at intel.com
Fri Jun 7 08:57:19 UTC 2019


On Fri, 7 Jun 2019 at 09:46, Maciej Pijanowski
<maciej.pijanowski at 3mdeb.com> wrote:
> > Would you be able to write a small test for this, along the lines of
> > test_recipetool_create_*() in
> > meta/lib/oeqa/selftest/cases/recipetool.py?

> Sure, I will try that. I haven't been contributing to the QA parts yet.
> Is there any documentation / guidelines I should refer to?
> Or looking at other test cases should be enough to get it done?

Thanks, that's much appreciated.  Looking at the other
test_recipetool_create_* tests in that file should show you enough to
write the test case, the hardest bit will most likely be picking a
suitable Python module for the test case!

To execute the tests, use oe-selftest:

# This runs all tests, will take quite a long time
$ oe-selftest -a

# Run just the recipetool tests
$ oe-selftest -r recipetool

# Run just test_recipetool_create_git_http
$ oe-selftest -r recipetool.RecipetoolTests.test_recipetool_create_git_http

Ross


More information about the Openembedded-core mailing list