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>
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):
@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) )