From patchwork Thu May 25 11:16:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 100479 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp711498qge; Thu, 25 May 2017 04:17:21 -0700 (PDT) X-Received: by 10.84.215.23 with SMTP id k23mr8708040pli.104.1495711041029; Thu, 25 May 2017 04:17:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495711041; cv=none; d=google.com; s=arc-20160816; b=nNldOdbTsuyKBsmeVjZnzbriS36QpW6UQjA9/8GwNc+w3EuknpmoVBKErcS0ishxcX /xt3jZ3R90zzwtAjuApbd7ThVERfxXfrctKUKcU5wwOJME1GsKSOtnc0OX5mISVzkgVv Y0J3kSemRa354ecaR+981qXr0mizXNRGz7e0vo4+AZoyfZKHLmDJ2m1QgiyN6RM7OBxr NBrx+qoICM0VJOBPnjt2KURCmacNUsmlgAJIKiS0AB3gePQgKye2GoKxEzuVDNtwfy/B fuH+9bEylCED7d09qC1S5+MlQQOXEW3sLgYihSn3n9ZCsTJsUfnlQvo6ap9RelBMDxE5 0mDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=6O5cPANVhiZssMr6xwn/zNg+VksDmWFIZJM3qFF5x4M=; b=cIepLKSjTQfk5aUqH445uv7W+4DYpzja538d5TilVsr1ibBlH3XHrfeCnoBHqkY8ZA gNkIgz4eiilunoeS/DqxMI7dRHi80S/0hbvEt2TskbjMPnHxV7QtwC+ydIJbzcjlR2r7 nVueTSEBqWRpRVR91Yv4xHztTQLxiaFwGNmOHIYJK32Kvos/6RBfreX9LrNCGCJHtv7M 2zmKP5qbyduD8WbrYgvRKs8CSnZpfuAqg82lBFt8EvcZCnCpUMLzM7KftMjERHO/EvdZ 5hdIV1fZYtqjWaJck4bQqzgrAMdMyCvn2dFovSuqCsFfzBnNTLzu+D3yeIgrlBl5U18Y rjVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id s186si11010432pgb.374.2017.05.25.04.17.20; Thu, 25 May 2017 04:17:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 4F1697810A; Thu, 25 May 2017 11:17:18 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by mail.openembedded.org (Postfix) with ESMTP id 231F7780FD for ; Thu, 25 May 2017 11:16:58 +0000 (UTC) Received: by mail-wm0-f52.google.com with SMTP id d127so93065967wmf.0 for ; Thu, 25 May 2017 04:17:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=EndmnMq48xNPv1X/x1YuT8PMYCuw7Gao6DRLDI8Veis=; b=YRpXbvAxeyFGEjKtk7i7lpSuTGlEA6Xa17AHGFhZa17PNRHXlKuOeR4KXUn0X5Z3Sa fazQAKwcUI1SVIMXULDWNQeEI4qQdinB8FLdYH8/fztUkT0ijb492KADmep96Dk+3u0z ASVpcNpHnU2PEKpgyasf1BjSE01esgkaeMyQJhK2eQOCSWP1SJaRmsYpdny46QCeAc4v Duki12vIMKqpmIZJO/+Nu+LXCyeUuaHOTs6llJcN0U7hO0abqronWwEMqFPn0bnp+ARF XpZZ/6Ib4PV1Mf+UoXy+Qh9nI2seLTvNBdKqbKoXdikRTxgMtDxCBVL+copG/7n450cZ 8oKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=EndmnMq48xNPv1X/x1YuT8PMYCuw7Gao6DRLDI8Veis=; b=n4wGDO/inDkhjt5Zt+ANtbnuNFbSTYUUp3N/op56oDtzmmA3SE/dNWIAJmBMtjyJsv nGkD24jBQn8Mo8gz9M4Wo8JhZigazbgR4lk4lw6q7bfQINQvcIJUrUiiDRmtOx1TPbXo KO/Uu2hVdrVRfNLlat0rjmnJ6UvhQkUyYyKwylZiPq93LwgeT5FIjTnVI87SAvL0a0ZF //J4mQMmB86f2OjT7FP2C52GhukP8yimYZjMVsUEvGAUm/v4mU9a+ylJ1azUidG2IsLn qm15WD0QeOYKlcECw3RIy/MX0c/5TUMYJhN5pInQB7UR6guMbi/PEp+NUHD/4BJg7ZSh NhgA== X-Gm-Message-State: AODbwcCDslu9yoSiHaClZFMA7ehpQY21TGPYmh4wh/6gFXPb9BvNsIO2 aOzERtiHwq99+XSM X-Received: by 10.223.135.50 with SMTP id a47mr23489615wra.138.1495711018549; Thu, 25 May 2017 04:16:58 -0700 (PDT) Received: from flashheart.burtonini.com (home.burtonini.com. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id d74sm8544169wmi.3.2017.05.25.04.16.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 May 2017 04:16:58 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Thu, 25 May 2017 12:16:50 +0100 Message-Id: <1495711012-6397-1-git-send-email-ross.burton@intel.com> X-Mailer: git-send-email 2.8.1 Subject: [OE-core] [PATCH][morty 1/3] insane: remove broken unsafe-references-in-binaries test 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: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org This test aims to detect binaries in /bin which link to libraries in /usr/lib, for the case where the user has /usr on a separate filesystem to /. However it doesn't scan both image/ and the sysroot, so if a binary in /bin links to a library in /usr/lib that was built by the same recipe then it will error out. This test isn't enabled by default, and because of this serious bug I suspect nobody else is enabling it either. As /usr being on a separate partition to / is a very rare configuration these days I think we should delete the test: if someone cares sufficiently they should write a test that actually works. (From OE-Core rev: a6af5bbf3dad6f0951c67a0aae13ef86a8906893) Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/classes/insane.bbclass | 41 ----------------------------------------- 1 file changed, 41 deletions(-) -- 2.8.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index 5ddb87b..e541c72 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass @@ -405,47 +405,6 @@ def package_qa_check_perm(path,name,d, elf, messages): """ return -QAPATHTEST[unsafe-references-in-binaries] = "package_qa_check_unsafe_references_in_binaries" -def package_qa_check_unsafe_references_in_binaries(path, name, d, elf, messages): - """ - Ensure binaries in base_[bindir|sbindir|libdir] do not link to files under exec_prefix - """ - if unsafe_references_skippable(path, name, d): - return - - if elf: - import subprocess as sub - pn = d.getVar('PN', True) - - exec_prefix = d.getVar('exec_prefix', True) - sysroot_path = d.getVar('STAGING_DIR_TARGET', True) - sysroot_path_usr = sysroot_path + exec_prefix - - try: - ldd_output = bb.process.Popen(["prelink-rtld", "--root", sysroot_path, path], stdout=sub.PIPE).stdout.read().decode("utf-8") - except bb.process.CmdError: - error_msg = pn + ": prelink-rtld aborted when processing %s" % path - package_qa_handle_error("unsafe-references-in-binaries", error_msg, d) - return False - - if sysroot_path_usr in ldd_output: - ldd_output = ldd_output.replace(sysroot_path, "") - - pkgdest = d.getVar('PKGDEST', True) - packages = d.getVar('PACKAGES', True) - - for package in packages.split(): - short_path = path.replace('%s/%s' % (pkgdest, package), "", 1) - if (short_path != path): - break - - base_err = pn + ": %s, installed in the base_prefix, requires a shared library under exec_prefix (%s)" % (short_path, exec_prefix) - for line in ldd_output.split('\n'): - if exec_prefix in line: - error_msg = "%s: %s" % (base_err, line.strip()) - package_qa_handle_error("unsafe-references-in-binaries", error_msg, d) - - return False QAPATHTEST[unsafe-references-in-scripts] = "package_qa_check_unsafe_references_in_scripts" def package_qa_check_unsafe_references_in_scripts(path, name, d, elf, messages): From patchwork Thu May 25 11:16:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 100478 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp711412qge; Thu, 25 May 2017 04:17:07 -0700 (PDT) X-Received: by 10.99.111.79 with SMTP id k76mr45416358pgc.200.1495711027040; Thu, 25 May 2017 04:17:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495711027; cv=none; d=google.com; s=arc-20160816; b=oiqxjDIkads2a83fJvkxxQtRwm3aac1X1GqQsSr6IJL24f3jD3oA5eXOCQaGQTI8VC tT2FjdNSEUXCoI21Q899z1pnjyeirvf4MKWTxNq0HQ08tYQ0XCsAtYi6irBvaxQjq6l8 x5UlN1g2wLkMqS4Y4uTfxiO2P3KqxExb0uByXfNVx8AINriYH22mPVBpWe9jO83iNuJ/ BS4HIevGzxnmOCpGf6U/XMxYr7Jw9/px9OQ7FLkpXbrpvu2tzsdJADpo/mIPYNze0TgN ZNeIz4tWFHZZJ0KHAjq9YV2OF5oZvaLvTuL+T21/M8FcjHUjeJnJ/8tkhzHgJ8bXQO73 omxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=RHeH3o2W+UnXnk40a75KeiLrkOCSpw8zU1BHMvT5Dhk=; b=GwX63UBH1oKbhazRR1r7nMG1wPX2y/52+5GiOi3Oc+WZjKzOAE4CL5clWIVXV8IVnC PXsR/eGW1n+aHI36OfDNM5dL8sEwxPBXW+1YPJ1wCf4ZVmHt0XAc7whX4duYVGS939xZ T8iuetFjmzNSOvAWip8r2xRGyC5hEZCzDJb4coPQzjPtBFsEBKmptFPeikIYq7lef9EP RQN6xk5Zh7syjB8fkVveVXjPh7fLAw0WNFUGB0g+X4uhtEdqfjK8/dIOCL9r/tmO8UCD elu6EjwbU7ENspdRc1DL+PbC4k0hl8m9Q69aWvnNY2qOhGYRLPY4jzuFd5VOusjgjG+X SyEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id o186si27888172pfg.315.2017.05.25.04.17.06; Thu, 25 May 2017 04:17:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 5DD1E78106; Thu, 25 May 2017 11:17:01 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by mail.openembedded.org (Postfix) with ESMTP id ED77D71B40 for ; Thu, 25 May 2017 11:16:58 +0000 (UTC) Received: by mail-wm0-f48.google.com with SMTP id d127so93065759wmf.0 for ; Thu, 25 May 2017 04:17:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=3XLlGo55bYH6+ti84wlIrxx1h1SvF/5nP8n6QzG3+zo=; b=J9yjApZ5U6sA13Dl8e4pkZXjALXfzVtEQcLIpjy+k4zMaXgm1Wcmxf3n2u6s5n7o90 WKja7sKXxJqI8r7POYmYsD/NGWwK3i9d/gbpGlKedZdQjpZjyaM7vxnthIGSargO5DKH Qqy6bA9yY1xMIjKYQzWa6tnVdjUoguMSiNXgRcsS9KjrDHLHWapg/kbRlvyjCSubcsTo 0v2GaYjdc2Mgudc34UfEap//Mo8Oh9EJV/SaQNCQxXrWv+fHMJLRdUYp5shbsayrGPZP QXxq2MoFSHtH39VbyP23u05xDn2nC71k/Q+sjxx1UMPXneOOn6wRe0ZpxYo/FLZndPWr DymQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=3XLlGo55bYH6+ti84wlIrxx1h1SvF/5nP8n6QzG3+zo=; b=DxbA6FuE4AOiOHXOFCnhPp5AsXgGUNq6ixL8YK0qXUEiCa5A2Qg/R4QAaWODWJQO5c PqeYFvQMhiQFzy8J7wFnh2smAQZfdpR2LBK8LjOAboYIpNxl36ZkUwHyRUQ7cIa4LSLB iMSKgOnBLcOaZn0ex72C/dNbwzeBfH65OFkdgjoAd/3snzDqXtpnmN81McyWusL54S7x dU6Uai4bkVzlezwqu3hR28h1leTvDwUFm9ky5E0t2emK7T9Oy3yNMX+tmLkugH/8puEc JF4xoqq9cylCKS+oRj6lEB/uCESgOXtm4SVpmKjZbKErDZrFPTxMBQOUyTCTl5DBMsuR YbOQ== X-Gm-Message-State: AODbwcAHNl9xZo8DAymX83o2R29rmFKmmGrGMdKwDNH8Px5sjRdIKPkk kphRREY3dbJXldt/ X-Received: by 10.223.178.85 with SMTP id y21mr15001523wra.58.1495711019416; Thu, 25 May 2017 04:16:59 -0700 (PDT) Received: from flashheart.burtonini.com (home.burtonini.com. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id d74sm8544169wmi.3.2017.05.25.04.16.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 May 2017 04:16:58 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Thu, 25 May 2017 12:16:51 +0100 Message-Id: <1495711012-6397-2-git-send-email-ross.burton@intel.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1495711012-6397-1-git-send-email-ross.burton@intel.com> References: <1495711012-6397-1-git-send-email-ross.burton@intel.com> Subject: [OE-core] [PATCH][morty 2/3] oeqa/selftest: remove test_sanity_unsafe_binary_references 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: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org This test was attempting to exercise a broken test, for some reason this broke with patches under review but investigation revealed that the test itself is broken. The test has been removed, so there's no need to test it. (From OE-Core rev: 4f5f552cd6601ba244ef4efc782616bc477e1340) Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/lib/oeqa/selftest/buildoptions.py | 19 ------------------- 1 file changed, 19 deletions(-) -- 2.8.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/lib/oeqa/selftest/buildoptions.py b/meta/lib/oeqa/selftest/buildoptions.py index 9487898..09657ec 100644 --- a/meta/lib/oeqa/selftest/buildoptions.py +++ b/meta/lib/oeqa/selftest/buildoptions.py @@ -110,25 +110,6 @@ do_install_append_pn-gzip () { line = self.getline(res, "QA Issue: gzip") self.assertTrue(line and line.startswith("WARNING:"), "WARNING: QA Issue: gzip message is not present in bitbake's output: %s" % res.output) - @testcase(1434) - def test_sanity_unsafe_binary_references(self): - self.write_config('WARN_QA_append = " unsafe-references-in-binaries"') - - bitbake("-ccleansstate nfs-utils") - #res = bitbake("nfs-utils") - # FIXME when nfs-utils passes this test - #line = self.getline(res, "QA Issue: nfs-utils") - #self.assertFalse(line, "WARNING: QA Issue: nfs-utils message is present in bitbake's output and shouldn't be: %s" % res.output) - -# self.append_config(""" -#do_install_append_pn-nfs-utils () { -# echo "\n${bindir}/test" >> ${D}${base_sbindir}/osd_login -#} -#""") - res = bitbake("nfs-utils") - line = self.getline(res, "QA Issue: nfs-utils") - self.assertTrue(line and line.startswith("WARNING:"), "WARNING: QA Issue: nfs-utils message is not present in bitbake's output: %s" % res.output) - @testcase(1421) def test_layer_without_git_dir(self): """ From patchwork Thu May 25 11:16:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 100480 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp711520qge; Thu, 25 May 2017 04:17:26 -0700 (PDT) X-Received: by 10.98.1.134 with SMTP id 128mr43435039pfb.199.1495711046622; Thu, 25 May 2017 04:17:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495711046; cv=none; d=google.com; s=arc-20160816; b=KqDVgbREKb0NnQSPRnEee73ltx7RbN2I3LaywQXrkpiqXCfPnXAqHGxN6fR1MfNBD0 EyWbA+xeZ+TqP3mliYw6CHo7D//0OQQhj07ETSFzrkdPNsUgK4b06E6U+f9SBlf7y0e1 foUjWKVkT5Bq23qyx6q7Q6+WBYNqV/Yq/cR0PQBIrtnWX9KtjrGdShz+2lMDkoa0IHX9 f6Ai6OSQje5UarksOrICK++nJdnWddwI3a6mJ58JvQR4XN+VPJn+usKM8zRPajkS90aN aULO39e8Q9nROnTVjYq97+PvIyvEfyFPkfyK0hJsSJMCPusoHUWTaf36UbMiezNu76xd dgfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=Q8nmUdYtobEjQrgPcfQ9DWTC6dkjC89ghUunkHFM5+4=; b=e6AJ/1hEfVCKyVf+tMg9OYuzFTN9OB9J7ZbrPbFUxWDsFpfBbOSDWnRqnR2rui86l8 F0cE0Qt0IT2786oWYSz+aphgYl2G2IEDBoFrR5ekhEzMLVIVWhzHj6j0GJfKW8hVh5/P O7ZoRlJt4nL+opVZL0vY3TZqV6S3dUQVQvMeC14B4h/DPsIHA6PMzOSKX8bnsbm7OcqA 2e4VFkWZ9u0gJ+Tx68mYpKPEj51tl1QZdMOyPIN+/xB2W7XRIHWAycegSVy0uJ5L76GR xEcA8R3EPmRJ+/TnTu+BWtT6UaAbPsp1DqB4qmP1amSMN//1mfIk4epyel9GDGiwjy84 EYxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id g10si27890845pfg.199.2017.05.25.04.17.26; Thu, 25 May 2017 04:17:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 286D678107; Thu, 25 May 2017 11:17:24 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by mail.openembedded.org (Postfix) with ESMTP id 99659780FD for ; Thu, 25 May 2017 11:16:59 +0000 (UTC) Received: by mail-wm0-f47.google.com with SMTP id 123so32619064wmg.1 for ; Thu, 25 May 2017 04:17:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yXw+m6MehVrIAvbt5g3AXn6iE3lPfoGzVKWp8NRRBLU=; b=f7cpB9t+hr8En5DL7Lj7qcAHF1hL6FjJT2/eTh/wmAFle+QZFSKBez+S0bF6Nsq4U7 7kZ78Z/lujglczq4EW3kuOAwSDv3iieP2S0VFQ20P+dZS1DYx93tElfrTKPQ+t+zwgix 16TJ7VHUuxDmQQpjDgJ7Bl61Ed99X9by187hJAg+p1NWldsHcODlB++Hyjf+1keK9915 HHS6QYrBpj4VIkVw+27Cq97cVS4pTmdF8HOpZ+l7d9UScsSo7+2EJwFf54p6kyUvYK1M AxCp2rXz47cL4WTbH6Ta62CDDpKNkP/lmbZVZeLmGXuYWgauJvX+hQXgZV5fhzKd62TV F7Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=yXw+m6MehVrIAvbt5g3AXn6iE3lPfoGzVKWp8NRRBLU=; b=M6e1PltBiJx80wJRMFzXh0xXLCEQfHPHjVZ5SGepRd7EvIrQKP6u+TIypRwwW1eiC4 y0p9TpZJHFlj/J/7Z3ITUsBLca6i9WTh8ngTkomtGBfNocKUaPM43S5HolSdnxYT+icR iI8kzCAD58sEFk9LtIRitwWn8/aU5OJXaUiFC+3H+jpSHyd1ZzkRdrlxoAiVyMQKpoqg Hd8Zn2FKzF042oj1Z6XmTwXfgMak2USSmdIwZAwkW2n2AtwgdgCUaPuArXGCcVKCpWoq ROhtgH4jM8998FP1sxN5yWLow0E2mvrCDPNr93ZyM0ruMlgkc2nDT+WSnGlsMvlpu/yg TfiQ== X-Gm-Message-State: AODbwcBs6qwbSABrxu8++UVcEpL2WGU43PcSxqSbRoc+T0ATAr7dmbBH HMd7dEmeyeO9N7r9 X-Received: by 10.28.1.198 with SMTP id 189mr9020885wmb.18.1495711020327; Thu, 25 May 2017 04:17:00 -0700 (PDT) Received: from flashheart.burtonini.com (home.burtonini.com. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id d74sm8544169wmi.3.2017.05.25.04.16.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 May 2017 04:16:59 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Thu, 25 May 2017 12:16:52 +0100 Message-Id: <1495711012-6397-3-git-send-email-ross.burton@intel.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1495711012-6397-1-git-send-email-ross.burton@intel.com> References: <1495711012-6397-1-git-send-email-ross.burton@intel.com> Subject: [OE-core] [PATCH][morty 3/3] selftest: do not perform a full build in test_continue 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: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org From: Alexander Kanavin This was fetching and building the toolchain and everything else against empty download dir and sstate cache, and so was enormously slow. The test does not need that, it only checks that one fetch task fails and another succeeds when using bitbake's -k option. Signed-off-by: Alexander Kanavin Signed-off-by: Ross Burton --- meta/lib/oeqa/selftest/bbtests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.8.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/lib/oeqa/selftest/bbtests.py b/meta/lib/oeqa/selftest/bbtests.py index baae1e0..c9802a4 100644 --- a/meta/lib/oeqa/selftest/bbtests.py +++ b/meta/lib/oeqa/selftest/bbtests.py @@ -221,7 +221,7 @@ INHERIT_remove = \"report-error\" self.track_for_cleanup(os.path.join(self.builddir, "download-selftest")) self.write_recipeinc('man',"\ndo_fail_task () {\nexit 1 \n}\n\naddtask do_fail_task before do_fetch\n" ) runCmd('bitbake -c cleanall man xcursor-transparent-theme') - result = runCmd('bitbake man xcursor-transparent-theme -k', ignore_status=True) + result = runCmd('bitbake -c unpack -k man xcursor-transparent-theme', ignore_status=True) errorpos = result.output.find('ERROR: Function failed: do_fail_task') manver = re.search("NOTE: recipe xcursor-transparent-theme-(.*?): task do_unpack: Started", result.output) continuepos = result.output.find('NOTE: recipe xcursor-transparent-theme-%s: task do_unpack: Started' % manver.group(1))