From patchwork Thu Dec 13 21:38:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Armin Kuster X-Patchwork-Id: 153702 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1322874ljp; Thu, 13 Dec 2018 13:41:31 -0800 (PST) X-Google-Smtp-Source: AFSGD/VEB6SatgzbJEDHQDFoO3JWlVoWxEeLKov0a3LrqVKX7ZvKQGNH45mf8O4Fnyx2z1yUe0aI X-Received: by 2002:a17:902:bd4a:: with SMTP id b10mr454444plx.232.1544737291051; Thu, 13 Dec 2018 13:41:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544737291; cv=none; d=google.com; s=arc-20160816; b=uOWaWgF9SUKcpZ6sYsZ5bSVpRlr3zQJ44vPbZ7z0pZLZcL4ND5qUaVZtUEQXdjk2xN PntGjHQzBXKD3W0/ac1bm5P23oR2E1ZH/ZKNBC6fz1xngqVQUk/fnuYPta/GtwaNzheK nwreA8vvvCIp8Cqbv4xXtwUFIgE2ImL3h8q5FtexCaXVp5MSzyM/TpGJji0sSxX6uJEv B5JxF4tMNQvQvL2JnUpZvOHWpSsr8P63qEy1LH9vXv2UcTfyfTGkFhyfIUNR6J1bfXTL RvbqWNI83N8O7+iBp2BOpbwuTebOEyFP8zga67avVjYFvQfApYno5cF4NcHfdcDCF59C Fp3w== 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=EzD8vxUYfTPLsdrm4S7xVVRlJr55cOHgvM9MphqIGNI=; b=V6bP39i//u7mCJD2/362XBOgHFPhkWritfWGDinCg/hTS+f2cLh4Wk77KLxSqoYHs5 gFpevZebmtMfJNavHc9tqxJc1veHcxO8QxJHtvbRKIFa6Hrd+1GRVmHssBqi8/tr6zSc pynIuKBXDNWe+Q+D9sMN1VcfCHUgxsIxMkLlwKNuTcSI084BVkpoKCPrRr8T+DGErCvw PrUz2tSXqFqdkoB2woYG/HJjtVLuLzXrvYWUi1SankuoEZL5IEKkU+6iJFEiDNmPhSb1 QqP42lJw211qjLyKp+AqMDRDf/xS6Lx/F77nc9xExuKaR+ay91v/Mq7DeVZE519WS8WW 4ejA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=nEjLsgDJ; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id m187si2536985pfm.51.2018.12.13.13.41.30; Thu, 13 Dec 2018 13:41:31 -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=@gmail.com header.s=20161025 header.b=nEjLsgDJ; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from 165.28.230.35.bc.googleusercontent.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 95BC179E08; Thu, 13 Dec 2018 21:39:44 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by mail.openembedded.org (Postfix) with ESMTP id A6EA27469B for ; Thu, 13 Dec 2018 21:39:22 +0000 (UTC) Received: by mail-pg1-f196.google.com with SMTP id w7so1635118pgp.13 for ; Thu, 13 Dec 2018 13:39:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=KN0e0+ZcJM0nXTKJ2qSpLtVlLOSxyrQkuZqrsOWsJmw=; b=nEjLsgDJ9mtGqtayULk2Rcd6OgkMUZOlQJv45eF6YrAjppPvM4RB77IQjEidbyM2Ji NBdlHKuPZS67dCaAq8KHGWEbD2DAZ/tmKni91Z55e5G89bWjywbBswifJnQLOVeKOHb7 gNK0eo45E9k0gvpsN3qT8PXJSI+u4DX1ShqmfCrSFzg11TlmAVFC5+yXEFeUoG2LE668 TYyq/ehIloWpG4aVWulX7uzDL1kntFQ4pCUobSawXdrext1XKxliRnCHp06zol5Ghtum 0Y1p6EkREc4CFBFezQMn5lI54qZPkdwP/TSHfP5gTkIoiw5rVHqxx2bcDaG5V1LGnJtN u93A== 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=KN0e0+ZcJM0nXTKJ2qSpLtVlLOSxyrQkuZqrsOWsJmw=; b=VYvnRBBBDKNH4CczDPHsW7rEwHqRmtL5RhF3ZhUhANjojqF6d+Mw5+HMfLBaUXJyqx m0Hi3J7LR8ahYowKRZXDOUNLUw6RJCyx+qQKdlNV0TZs0B3eYGFNDMndKTBZTxfiAPtj 7xTeTo/F9sgK8ZpzoIwEXMwPyUBD3uw2JMyosHJuuxYeNUE5fbaIauJS/b9KkUTEjXRy BoZt6GRR+AGwz7beMeOVWq2lVpkhOb8s7MDmTnKtQVH/V6UBkqDv7YQVoghIus8al8CZ Y2XiU3OHpn2xDoC+AKQdPhIBaDT6W0RVAQouQbl7+ZVxaqB0urqXPIwPTQabpmzFlGDs a/xQ== X-Gm-Message-State: AA+aEWZSmj95LBW2Evt+yiNqhBJmrpzffXPiGj0DmBLCpPBr8KJACGRM JT717v1/SEg8L2wmsFgjnylu+y6Y X-Received: by 2002:a63:4c04:: with SMTP id z4mr425962pga.312.1544737163613; Thu, 13 Dec 2018 13:39:23 -0800 (PST) Received: from akuster-ThinkPad-T460s.hsd1.ca.comcast.net ([2601:202:4180:c33:79af:1f36:1822:3801]) by smtp.gmail.com with ESMTPSA id b9sm3288912pfi.118.2018.12.13.13.39.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 13 Dec 2018 13:39:22 -0800 (PST) From: Armin Kuster To: openembedded-core@lists.openembedded.org, akuster808@gmail.com Date: Thu, 13 Dec 2018 13:38:27 -0800 Message-Id: <236cd6c0c289dca77905aec1ff7be5c0c39a087d.1544735897.git.akuster808@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Subject: [OE-core] [PATCH 19/45] oeqa/selftest/esdk: run selftest inside workdir not /tmp 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: Ross Burton We've seen issues with rootfs size calculations and we've seen systems like opensuse which have btrfs mounted on /tmp causing selftest failures. (From OE-Core rev: 61be3cd748d1b7321a1fc4cfe84efa9b26a6aee0) (From OE-Core rev: d936faabfb29ea377d74e77332a2a91603747ac7) Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/lib/oeqa/selftest/cases/eSDK.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) -- 2.7.4 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/lib/oeqa/selftest/cases/eSDK.py b/meta/lib/oeqa/selftest/cases/eSDK.py index d03188f..14f75d8 100644 --- a/meta/lib/oeqa/selftest/cases/eSDK.py +++ b/meta/lib/oeqa/selftest/cases/eSDK.py @@ -70,11 +70,12 @@ CORE_IMAGE_EXTRA_INSTALL = "perl" @classmethod def setUpClass(cls): super(oeSDKExtSelfTest, cls).setUpClass() - cls.tmpdir_eSDKQA = tempfile.mkdtemp(prefix='eSDKQA') + cls.image = 'core-image-minimal' - sstate_dir = get_bb_var('SSTATE_DIR') + bb_vars = get_bb_vars(['SSTATE_DIR', 'WORKDIR'], cls.image) + cls.tmpdirobj = tempfile.TemporaryDirectory(prefix="selftest-esdk-", dir=bb_vars["WORKDIR"]) + cls.tmpdir_eSDKQA = cls.tempdirobj.name - cls.image = 'core-image-minimal' oeSDKExtSelfTest.generate_eSDK(cls.image) # Install eSDK @@ -87,14 +88,14 @@ CORE_IMAGE_EXTRA_INSTALL = "perl" sstate_config=""" SDK_LOCAL_CONF_WHITELIST = "SSTATE_MIRRORS" SSTATE_MIRRORS = "file://.* file://%s/PATH" - """ % sstate_dir + """ % bb_vars["SSTATE_DIR"] with open(os.path.join(cls.tmpdir_eSDKQA, 'conf', 'local.conf'), 'a+') as f: f.write(sstate_config) @classmethod def tearDownClass(cls): - shutil.rmtree(cls.tmpdir_eSDKQA, ignore_errors=True) - super(oeSDKExtSelfTest, cls).tearDownClass() + cls.tmpdirobj.cleanup() + super().tearDownClass() @OETestID(1602) def test_install_libraries_headers(self):