From patchwork Mon Dec 10 17:11:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 153313 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3793517ljp; Mon, 10 Dec 2018 09:12:13 -0800 (PST) X-Google-Smtp-Source: AFSGD/WkboesZ6JUMqLdxAsYdytpHHaqNf7dUnGyDv9ccT4nF/zFUgToCsiNWsxeBZAki5DwBsig X-Received: by 2002:a17:902:8484:: with SMTP id c4mr12480839plo.59.1544461932960; Mon, 10 Dec 2018 09:12:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544461932; cv=none; d=google.com; s=arc-20160816; b=FVZqLTK9R5dhvMKHElhQDhe85YmKh3DDshAdStma1DOEKZeht3vYflnGIyMXm/cbZu ijucPcOLhdpY5IBvyQl/e3uQd1CFmoilzGR1o1/yGdlLL8spoAT6epDQABiv9scCXyHp gysHCqcTUbsDAdYkGdkXMJHU5qyIaLatZ4Uwo10NAyYXJcY7FO+kMuQVKK5Nx+G8ht/P QTME8cvFvHM4PDRo8MsoCwZ+OxplDypIG12etGVZQtYP6AHWpMt8loildcn5eUfRuefQ dOMwORg8Q4fZO79dhqZibczGQjNM8KeKK7tZ/f9XHpwESWrXM+lYAWHcBPewY8CFnW5y BqIA== 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; bh=AKgQm11f+3ThMmVoQ/GN7ZqiHWi7rxTkTGkYA0AASBk=; b=Aj91nNsbqY0e9Xfgb1i2pixFL4NX0FV7L9Mjeo8Q6nIzbj3gwXzzVgzclCx90LySNb D4qLL7bvlOvvEe8xsAxaS8am3+zC/1/VWYxkCy4LczxPTLDr3oOqCXh4meL6qNZZ2CB/ 6jrqI6bZ7Fm2+UW8lzBUqtfo76RiSe3B/pseLimSLbbMtoLFtl/mu0GYXy1t3AAAX9rV xsgUpkP+U74kIGVkm/PhmgrgBYvi1ncI2mtVquPZaZhqLZgK6rAkFjIWbHKtyV5OA3jw OZ4I1ZEWGLnmR/kJMSaKlTojkwvxEqRZDtaIsryCuTPRLUhdT0X7TyRPo/iQbAwcEfm3 eYdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=EzHP7arp; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id r10si10126575pgg.143.2018.12.10.09.12.12; Mon, 10 Dec 2018 09:12:12 -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 header.s=20150623 header.b=EzHP7arp; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from 165.28.230.35.bc.googleusercontent.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 191B76C4E9; Mon, 10 Dec 2018 17:12:04 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by mail.openembedded.org (Postfix) with ESMTP id C99716C4DC for ; Mon, 10 Dec 2018 17:11:53 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id c14so11327244wrr.0 for ; Mon, 10 Dec 2018 09:11:54 -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=qkOtSir03PTwCW1cU1ditSbT9t5iVVadJ/LSQ2rj1V4=; b=EzHP7arp4HOLONVCMz7CPLT6Otd02jSv3VhwBc3gq2GF89RBLUlpTOnaIBB6XRYtEh dOYq45xMcWpjifSEjtDmgSDvhc+FNvt++OImZtKzpIE046kAWr/XZ/4M6mNKXyrJXxkx Mptt1s42wSROCd2IM8khdEC69YXSVG/JjacT6gDkPAOTPDXDrL/QxdnHRLQ+Cjg84AZq 63/WBHGmAKCyykDdd5PCf2UOnsw6xeHMK/rksgA07E4WkTSBbIL2x1skIEr3ObskoEQ6 L2TuyFAgWUXWfoRdw/l9wtXY91Fso8KUyXrE2gT01cHeNfD8Wlov75Ti7xUCEZBIUD3P 2e4A== 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=qkOtSir03PTwCW1cU1ditSbT9t5iVVadJ/LSQ2rj1V4=; b=b8PbBDq415wBhR2M+JTFz+0gcRSg74Gd62Dor2WskfjrMQAQ6iKoSIMkuf3tD1+tQL zdj32y4EljfCdgNqXol05XIOZNEpRDOriegpx0tTtznaWqF0kB47qbkXSH61TbZ19Bdh mOZJtsIuyKPNZjg0it+hKX+m57nU1/dAtIlRysw81syCs8E18HKY7bUu8ul0yFkPkOA3 iBU77XEMqYHgMV2kp3FLzjAD+mdh1QBA+Z/pmI7HT/WnOlIEiPUNoS3ILE2SN0ONem9E D8VTCieVljJ0K6axN3iWFpSq6B/HooT6q0555X92kT9G6lJULNZKkqnsiJ8LPPtvJFGc a4Fg== X-Gm-Message-State: AA+aEWY3p+bZovrm1kTVR9p6DMt58enjlCMmjyQTPlY53JPPsrNUb/G7 hfNCoqYr6ipz+i7doseLNczaq+hQEg8= X-Received: by 2002:a5d:528e:: with SMTP id c14mr10366026wrv.236.1544461914086; Mon, 10 Dec 2018 09:11:54 -0800 (PST) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id y13sm12343505wrn.73.2018.12.10.09.11.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Dec 2018 09:11:53 -0800 (PST) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Mon, 10 Dec 2018 17:11:40 +0000 Message-Id: <20181210171141.10722-3-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181210171141.10722-1-ross.burton@intel.com> References: <20181210171141.10722-1-ross.burton@intel.com> Subject: [OE-core] [PATCH 3/4] oeqa/sdk: clean up galculator 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 Drop redundant imports and variables, and use os.makedirs() instead of bb.utils.mkdirhier(). Signed-off-by: Ross Burton --- meta/lib/oeqa/sdk/cases/buildgalculator.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) -- 2.11.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/lib/oeqa/sdk/cases/buildgalculator.py b/meta/lib/oeqa/sdk/cases/buildgalculator.py index 7beb55884d3..c488a1c73e2 100644 --- a/meta/lib/oeqa/sdk/cases/buildgalculator.py +++ b/meta/lib/oeqa/sdk/cases/buildgalculator.py @@ -3,17 +3,11 @@ import subprocess import tempfile import unittest -import bb - from oeqa.sdk.case import OESDKTestCase -from oeqa.sdk.utils.sdkbuildproject import SDKBuildProject - from oeqa.utils.subprocesstweak import errors_have_output errors_have_output() class GalculatorTest(OESDKTestCase): - td_vars = ['DATETIME'] - def setUp(self): if not (self.tc.hasTargetPackage("gtk+3", multilib=True) or \ self.tc.hasTargetPackage("libgtk-3.0", multilib=True)): @@ -33,8 +27,8 @@ class GalculatorTest(OESDKTestCase): subprocess.check_output(["tar", "xf", tarball, "-C", testdir]) self.assertTrue(os.path.isdir(dirs["source"])) + os.makedirs(dirs["build"]) - bb.utils.mkdirhier(dirs["build"]) self._run("cd {source} && autoreconf -i -f -I $OECORE_TARGET_SYSROOT/usr/share/aclocal -I m4".format(**dirs)) self._run("cd {build} && {source}/configure $CONFIGURE_FLAGS".format(**dirs)) self._run("cd {build} && make -j".format(**dirs))