[yocto] Python3 ptest and unittest

Paul Barker paul at paulbarker.me.uk
Thu Mar 6 17:18:34 PST 2014


On 23 February 2014 21:50, Randy MacLeod <randy.macleod at windriver.com> wrote:
> On 14-02-22 08:07 PM, Paul Barker wrote:
>>
>> I've never worked with the ptest system before but I'm giving it a
>> go... I'm mostly relying on https://wiki.yoctoproject.org/wiki/Ptest
>> for info.
>>
>> It does look like the python3 test suite crashes with out-of-memory
>> errors on qemux86 with the default configuration of 256 MB RAM. I've
>> bumped it up to 1 GB and it seems to be working.
>
>
> I've seen similar problems and dealt with it the same way.
> Some tests deliberately try to cause an OOM and I assert that
> they don't belong in ptest runs.
>
>
>> Is there any way to
>> note this in the ptest system so that this test suite is skipped if
>> there isn't enough memory?
>
>
> Not that I'm aware of. Add to docs?
>
>
>>
>> Also, I'm getting several failures within the testsuite which I'm not
>> seeing when I run it on my desktop. Do we keep data on whether each
>> ptest package is expected to pass or has known failures?
>
>
> Not that I know of. We should.
>
> That's something that I've been meaning to do but I won't get to it
> for until another project is done so don't wait for me. :)
>

I've submitted the patch to oe-core.

-- 
Paul Barker

Email: paul at paulbarker.me.uk
http://www.paulbarker.me.uk



More information about the yocto mailing list