to make use of the xml results exporting feature of oe-selftest, the xmlrunner[1] module has to be available there. One option is to install it there. Make sure it is installed via python3. [1] https://github.com/xmlrunner/unittest-xml-reporting
Another AB installation requirement.
And this would also be a documentation change at the oe-selftest pre-requisites. CC'ing Scott
Would this be applicable for all the supported distros? So adding xmlrunner as a package to the four distros shown here http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#required-packages-for-the-host-development-system would cover it? Thanks, Scott
Indeed Scott, it applies for all supported distros as it is a python module. Now the interesting part is whether we have a section for installing python modules that do not come from the distro (not from dnf, zypper, apt-get, etc). Also, this package adds functionality (exporting reports to xml) and while it is essential to the YoctoProject plans, it is not required for the regular user. So this is an optional thing. Assigning it to you while in needinfo so we can continue the conversation.
Thanks Benjamin, So it sounds like it is still not clear as to whether I can simply add the "xmlrunner" package to the four sections for oe_selftest that list the required packages. I guess I will wait for further clarification. Thanks, Scott
(In reply to comment #5) > Thanks Benjamin, > > So it sounds like it is still not clear as to whether I can simply add the > "xmlrunner" package to the four sections for oe_selftest that list the > required packages. I guess I will wait for further clarification. > > Thanks, > Scott that's the thing about the package, there is no xmlrunner distro package. However, there is a python package that can be installed via pip. Or the manual installation way. Is there a python specific installs section at the manual? my guess is not. If so, should we add it for other things that will eventually show-up in the same way?
Hi, The nearest thing we have is this section that lays out the minimal requirements for some stuff, which includes Python - http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#required-git-tar-and-python-versions. We have nothing beyond this information. Scott
I will remove the dependency on documentation for this bug since it is not being offered yet as a user feature. When the test reporting is documented as a feature in the manual it will need to contain the xmlrunner dependency resolving via: pip install xmlrunner.
Thanks Benjamin.
all instances of xmlrunner in this bug should be taken as unittest-xml-reporting. xmlrunner is another package which confuses the installation process.
bug 10162 is blocking this one as it causes oe-selftest problems.
Michael, did we install this on the ABs (using Python3)? If not, can we? Pypi seems to have a package for it; that might be easier to deal with than the git repo.
I would advice against installing this until bug 10162 is resolved. unittest-xml-reporting introduces an error at a subset of the tests.
No not installed yet. I'll wait for an update from Benjamin.
this was tested in a staging autobuilder instance and it seems safe to enable it now.
changing the target milestone as it blocks a bug for M2.
This is now available for the default python3 used by pokybuild on all workers. Both .yoctoproject.org and yocto.io.