aboutsummaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2016-11-16 00:41:45 -0800
committerRobert Yang <liezhi.yang@windriver.com>2016-12-21 06:18:56 +0000
commit67962b586750f090551729fa1ae568e2f15a67c6 (patch)
tree42fd82e9011a1a70cb631e5e30ab984949e60f03 /meta
parent953f055b1f99a25660900f2aa08ba707f1476e00 (diff)
downloadopenembedded-core-contrib-67962b586750f090551729fa1ae568e2f15a67c6.tar.gz
oeqa/sdkext/devtool.py: skip a testcase when no libxml2
Skip test_extend_autotools_recipe_creation when no libxml2 The librdfa requires libxml2 to build, otherwise, it would fail: | configure: error: Package requirements (libxml-2.0 >= 2.6.26) were not met: | | No package 'libxml-2.0' found Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oeqa/sdkext/devtool.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/lib/oeqa/sdkext/devtool.py b/meta/lib/oeqa/sdkext/devtool.py
index f101eb619a..6cb8d01864 100644
--- a/meta/lib/oeqa/sdkext/devtool.py
+++ b/meta/lib/oeqa/sdkext/devtool.py
@@ -1,7 +1,7 @@
import shutil
import subprocess
import urllib.request
-from oeqa.oetest import oeSDKExtTest
+from oeqa.oetest import oeSDKExtTest, skipModule
from oeqa.utils.decorators import *
class DevtoolTest(oeSDKExtTest):
@@ -66,6 +66,9 @@ class DevtoolTest(oeSDKExtTest):
@testcase(1482)
@skipUnlessPassed('test_devtool_location')
def test_extend_autotools_recipe_creation(self):
+ # librdfa requires libxml2
+ if not oeSDKExtTest.hasLockedSig("libxml2"):
+ skipModule("No libxml2 package in the eSDK")
req = 'https://github.com/rdfa/librdfa'
recipe = "bbexample"
self._run('devtool add %s %s' % (recipe, req) )