From patchwork Thu Jan 12 12:57:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 91141 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1606296qgi; Thu, 12 Jan 2017 04:58:17 -0800 (PST) X-Received: by 10.84.217.18 with SMTP id o18mr21381090pli.51.1484225897455; Thu, 12 Jan 2017 04:58:17 -0800 (PST) Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id f17si9212051pge.120.2017.01.12.04.58.17; Thu, 12 Jan 2017 04:58:17 -0800 (PST) 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 5405B71BFD; Thu, 12 Jan 2017 12:58:15 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by mail.openembedded.org (Postfix) with ESMTP id 6A89770016 for ; Thu, 12 Jan 2017 12:57:59 +0000 (UTC) Received: by mail-wm0-f49.google.com with SMTP id c206so18337441wme.0 for ; Thu, 12 Jan 2017 04:58:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=VRrF5t0oTFWvec9mJCQzyNXe44NTZVWezl1oOwW1AnU=; b=l8N3cT86Vww54BxmbZ79XNi+uxWkLbyCRzmJMjeRAK2j0h31t4CXBYkkghUkOnCpfx yTGeOk+fmhPTPQ8t1xtLysVurAbWf/7n3iUAMuOIH4KNgHEuAuLf00gm0iGjE1DXtW2L oNfxoJd60srl0AXOxQMAwsdW5L8C1V7Wu3cHcIs+q+KiZk6wtSK4faMhctJ5+Bm6bL42 z5SI/gGqiEb1j+xDbHD//hzT33OuRw30104+/6xcbo8TdDmNxZF4AcF2W76FKtXSCVI7 mYRDKat1f4E6sWTsOFLmF65JqgQbjUcPTuj6qE+wvJGgH4xtERzsyeGa4lIKjttphaBc yYFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=VRrF5t0oTFWvec9mJCQzyNXe44NTZVWezl1oOwW1AnU=; b=YKVrdmweikhlQeyu1Facgh2MMfsDq4c7Fuw37faw180Jxk10Eac5W0V4H6yc7fKxVI iIlHYOpQ97KfaoyMD0eSxqoF+0XecqK1zXaDKTGrpEkV5V3VEd1Ik3AFu4lBTuWVDTkz tDZxMbRE2dWG3uHahz7S5KCSPDvXnStGplznrJd5zBC9Z/0qFITNXnYfByBcmJ8u5lfS AArSTfkkhjvcsj6U9NJPITvqZixtiz59//A+HeNYJKfv3kuXEjO4Cindnjoz+ZnrmE0s 6ZsRe2YSBS5396dH495mbzs8whMGlOO/Sxc5fTv+w3+xjVpytj0F8pJkhlfY/Lx8OS6u FgpQ== X-Gm-Message-State: AIkVDXI2uISDW9kAo3KImeLGqIPhieykhFSi9Cf/mEi3KG541LNbAVFRqim5XpCwitEgjZ3Q X-Received: by 10.223.161.222 with SMTP id v30mr8228587wrv.80.1484225879028; Thu, 12 Jan 2017 04:57:59 -0800 (PST) Received: from flashheart.burtonini.com (home.burtonini.com. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id y4sm13584936wjp.0.2017.01.12.04.57.58 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Jan 2017 04:57:58 -0800 (PST) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Thu, 12 Jan 2017 12:57:53 +0000 Message-Id: <1484225873-23702-2-git-send-email-ross.burton@intel.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1484225873-23702-1-git-send-email-ross.burton@intel.com> References: <1484225873-23702-1-git-send-email-ross.burton@intel.com> Subject: [OE-core] [PATCH 2/2] selftest/base: don't fetch DISTRO variable in constructor 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 Fetching the DISTRO variable in the base constructor means that we have to start bitbake for every test case instance, which adds minutes to the startup time. Signed-off-by: Ross Burton --- meta/lib/oeqa/selftest/base.py | 1 - 1 file changed, 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/base.py b/meta/lib/oeqa/selftest/base.py index b477db3..26c93f9 100644 --- a/meta/lib/oeqa/selftest/base.py +++ b/meta/lib/oeqa/selftest/base.py @@ -41,7 +41,6 @@ class oeSelfTest(unittest.TestCase): self.testinc_path, self.testinc_bblayers_path, self.machineinc_path, self.localconf_backup, self.local_bblayers_backup] - self.distro = get_bb_var('DISTRO') super(oeSelfTest, self).__init__(methodName) def setUp(self):