diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2019-06-14 14:32:18 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-06-14 22:48:22 +0100 |
commit | d9b0adbce87293be1fa2db39c3b09076477e9990 (patch) | |
tree | ada68317e4bd874755aa17c11ef1b15040980e7c /meta/recipes-devtools/opkg-utils | |
parent | e32d7565a3390d74bf6eff587f26613540f3d88b (diff) | |
download | poky-d9b0adbce87293be1fa2db39c3b09076477e9990.tar.gz |
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.
(From OE-Core rev: 785bb108ceb9dc137ec8d75d887b6a3869cbfb9c)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/opkg-utils')
0 files changed, 0 insertions, 0 deletions