From patchwork Tue Dec 11 23:26:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 153526 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1206539ljp; Tue, 11 Dec 2018 15:28:00 -0800 (PST) X-Google-Smtp-Source: AFSGD/XiC2Atsbhl0xx3WpdNMFU2ELxre+M1r8cmdheNcqTqB7JLLE7uC0po57uI1Kc5ZbuR+RDg X-Received: by 2002:a62:9683:: with SMTP id s3mr18046719pfk.60.1544570879962; Tue, 11 Dec 2018 15:27:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544570879; cv=none; d=google.com; s=arc-20160816; b=MZlI9Hd3OzLhtDkVafOFl3BYj67v9ki8Qc2LXEWjD3otX9twkb6gHSv8MBbiC03TlQ R0mZKZg+p/oWBFV3gdfS3/vmUieP7T0i8kP61eBhxLn8+PHpH6SNTjzS+xgEmnNEv5vA xXv/VbP9kDChebBDu8diASRhsZrJsrMi3qyfLWIdpLoNYHulwOx0qo93hR4pFarYJB7O uMtAyUcspy6dWTSmzJDO0ctTGLiQiYaCtEDVXBHHYkI2GPhmY3BV9H0FXhecuBDjQ1Cd O+mLELbwbbXpGXunPQjUkm21N97aPPDPqJGqo2b/5SxS1vMoVMRp4oNS4E1xkrDoBxH+ Tq9Q== 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=tL6/MAjq+B3eQ9KQ0QC54Ff1vTyWtEMsFBUXZr5VK9A=; b=zw7Qq0+XuwvJG9vkBkXhfdkp38Hg+h0e9T6k5eA1JjpeAIS2t4rb2/NSGe5zv+hWyx Fb7wGI/AWys+qrU8TJv7O34Pg+GH9NdquxfdDdDZ1kKl3VNA/eiX23xLcVIu3Xdu9AJ/ 4FWB5BhHfJpa+5GThm2pXqZXXXZ/bo+DvR4Lzc4o27VVYYB8fjhQNH/NjIdgh/akMKJB 2FXtDtjbaSYlIG/pgGpMES5z1618oy4WKm7+0Jhbd3wJVCIGcVTfp46+J/XDuKTeBo+9 nroxVi/SnPW7pkJdqcWMk0cRMjwGJTS/OLWPGWPCk/LzX3T/3wqcJk2NTc6Hvy8r7J6t DUEw== 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=Y2Z1qsH4; 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 4si13885285pff.161.2018.12.11.15.27.59; Tue, 11 Dec 2018 15:27:59 -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=Y2Z1qsH4; 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 22CD36C182; Tue, 11 Dec 2018 23:27:57 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by mail.openembedded.org (Postfix) with ESMTP id 3CC266BCF1 for ; Tue, 11 Dec 2018 23:26:41 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id r24so10109121wmh.0 for ; Tue, 11 Dec 2018 15:26:42 -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=VCelXHrq6lZGOrSR7xhDGTo8ylf2XB9Pl3LZT09GkSg=; b=Y2Z1qsH4sqjFxR7q0/yScOb/npXZNBYHL67k5svFKz5bfy5kr/6U6yRF82Roq9RcDU 7w6wIPbdo4DyLGQ6Mh/dxZY7O9kIX/DpD8EUmBLKfqBEW0yAQ/gv4hnXWfhUVGyONaDH pTDzXItPIeT6BabfJcwFdIBLyMsDRQavkCiMISqfj2NY9sZSOU51zQAowaMzOrOYYTFw LYa6+oT5K5nD9sx8BuFpGSHs5MGZPusmgUce/TFB0rYVTefKiKIl5XYkZL3FMGMQC9Tn KZibqsKfuAXh/pTC8/03VtINFqlWfDDLQ6SpbrrjdtC8kJ0E58RPmqwAQWAFsoZiY7WF xtuw== 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=VCelXHrq6lZGOrSR7xhDGTo8ylf2XB9Pl3LZT09GkSg=; b=IiwSMOTi9V4KTA1ZaLtfxlLFJp86cBK4dDLoRTmZlxWBzg3D3h8xUm18C9cEou+zpT 5s6IhCbXN15dEKHXFt4yp5dhL/C1jlBDIy3BpkHrgoDg9A+Mhy4cc2gKuKD0/GLlc/9z hph/aEICyZhzjBby6s6Cj5qyjg6F/Hk/iGhtq2YBFgdaxSb8F/MkDFBCWCfvtFRDQk6+ eWehuS/xQnfk0tnISvVfRQIGw9qwmdaS4Nb7/AC7MA5y5xotKN5TfXsbT4eu7DsiBuY9 px1RVSBwq6WluWqYKV5xpSiy6da3qd8is45/0RNsHR+zaclYOuJfbvMhjQ8BD+r1svs1 mJFw== X-Gm-Message-State: AA+aEWaDUbATCQ8hnmZs9oEsgpzCY5oIl75JNx+8LneL+OdlAPOF4ETc A7jpOZP1GfH/Tq70I+n5+myI1fqg1/k= X-Received: by 2002:a1c:b1d5:: with SMTP id a204mr4420412wmf.32.1544570801748; Tue, 11 Dec 2018 15:26:41 -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 v19sm30194595wrd.46.2018.12.11.15.26.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Dec 2018 15:26:41 -0800 (PST) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Tue, 11 Dec 2018 23:26:34 +0000 Message-Id: <20181211232636.13113-3-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181211232636.13113-1-ross.burton@intel.com> References: <20181211232636.13113-1-ross.burton@intel.com> Subject: [OE-core] [PATCH V2 3/5] 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 | 11 ++++------- 1 file changed, 4 insertions(+), 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..164a695637a 100644 --- a/meta/lib/oeqa/sdk/cases/buildgalculator.py +++ b/meta/lib/oeqa/sdk/cases/buildgalculator.py @@ -3,17 +3,14 @@ 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'] - + """ + Test that autotools and GTK+ 3 compiles correctly. + """ def setUp(self): if not (self.tc.hasTargetPackage("gtk+3", multilib=True) or \ self.tc.hasTargetPackage("libgtk-3.0", multilib=True)): @@ -33,8 +30,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))