]> code.ossystems Code Review - openembedded-core.git/commit
testsdk.bbclass: check python module testtools and subunit
authorRobert Yang <liezhi.yang@windriver.com>
Fri, 27 Jul 2018 03:17:36 +0000 (11:17 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 30 Jul 2018 11:44:28 +0000 (12:44 +0100)
commitae53461608c4e71533378369b3f623b4c9002e39
tree88f39a3af55e86aa4bc75ea60338fc7be5e7bad8
parentd1c56454b2d374f96c810f684a15dbefebead067
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>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/testsdk.bbclass