From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by mail.openembedded.org (Postfix) with ESMTP id 1E5B571A99 for ; Thu, 17 Nov 2016 06:19:42 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id uAH6Jhph028532 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL) for ; Wed, 16 Nov 2016 22:19:43 -0800 (PST) Received: from ala-blade47.wrs.com (147.11.105.67) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.3.294.0; Wed, 16 Nov 2016 22:19:43 -0800 From: Robert Yang To: Date: Wed, 16 Nov 2016 22:19:36 -0800 Message-ID: X-Mailer: git-send-email 2.10.2 In-Reply-To: References: MIME-Version: 1.0 Subject: [PATCH 7/8] oeqa/sdkext/devtool.py: skip test_extend_autotools_recipe_creation when no libxml2 X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Nov 2016 06:19:42 -0000 Content-Type: text/plain 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 --- meta/lib/oeqa/sdkext/devtool.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta/lib/oeqa/sdkext/devtool.py b/meta/lib/oeqa/sdkext/devtool.py index c91090e..9ff69f9 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): @@ -64,6 +64,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) ) -- 2.10.2