]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
oeqa/sdkext/devtool.py: skip a testcase when no libxml2
authorRobert Yang <liezhi.yang@windriver.com>
Wed, 16 Nov 2016 08:41:45 +0000 (00:41 -0800)
committerRobert Yang <liezhi.yang@windriver.com>
Wed, 21 Dec 2016 06:18:56 +0000 (06:18 +0000)
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>
meta/lib/oeqa/sdkext/devtool.py

index f101eb619ac8355c74c7d06c3d2ac8fecff48350..6cb8d0186442d0ceb193d01e3d75182b2602fe7c 100644 (file)
@@ -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) )