]> code.ossystems Code Review - openembedded-core.git/commit
oescripts.py: avoid error when cairo module is not available
authorChen Qi <Qi.Chen@windriver.com>
Fri, 14 Jun 2019 06:32:18 +0000 (14:32 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 14 Jun 2019 21:47:43 +0000 (22:47 +0100)
commit785bb108ceb9dc137ec8d75d887b6a3869cbfb9c
treec3d87172195215a95dc39b46d6a62798ee0281a3
parent70a30872bd93cc058b05d9cf2b4f9334658629ee
oescripts.py: avoid error when cairo module is not available

When running 'oe-selftest -r oescripts', the following error appeared.

    cls.skipTest('Python module cairo is not present')
    TypeError: skipTest() missing 1 required positional argument: 'reason'

This is because the host does not have the cairo python module installed.
Fix this problem by using unittest's SkipTest exception.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/oescripts.py