]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
testsdk.bbclass: check python module testtools and subunit rbt/testtools
authorRobert Yang <liezhi.yang@windriver.com>
Fri, 27 Jul 2018 03:17:36 +0000 (11:17 +0800)
committerRobert Yang <liezhi.yang@windriver.com>
Fri, 27 Jul 2018 08:46:06 +0000 (16:46 +0800)
commit85c2f1f3b70d5c6802230f2ef097fac28a544526
treeae4ef318a8aa84cf8b75f0d34e06fbbb07167e8f
parent364449251ffe4ff2c11acaa258edcec244c38818
testsdk.bbclass: check python module testtools and subunit

The testtools or subunit is not part of python's standard library, so check them
before use.

Fixed when they are not installed on host:
$ bitbake core-image-minimal -ctestsdk
Exception: ImportError: No module named 'testtools'

Now it can run with a warning:
WARNING: core-image-minimal-1.0-r0 do_testsdk: Failed to import testtools or subunit, the testcases will run serially

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
meta/classes/testsdk.bbclass