From patchwork Wed Oct 17 23:00:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anibal Limon X-Patchwork-Id: 149080 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp1242735lji; Wed, 17 Oct 2018 16:01:13 -0700 (PDT) X-Google-Smtp-Source: ACcGV63uDdwe+jEDQsIoNEeR9NUnxFJh2mD2ojZB1wze98jTnx9d27wEiKquDzXoIAGYR0ygxZek X-Received: by 2002:a62:3a84:: with SMTP id v4-v6mr27912799pfj.118.1539817273527; Wed, 17 Oct 2018 16:01:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539817273; cv=none; d=google.com; s=arc-20160816; b=TwVjXn/DEzIPYwJrfXvf51sFdtIZ2dFjQXCsnNQ4o5qLWInQfYiX757WT8hNsP2m+b OsKlqYOj3biwvfoNvHo0zgtUzzdsvd7iN6ap2Vh9ReBtY+vO4+kVPA+OTPSWc+CH28ht 2VssZroZFiY7ave/0FGCYUKVqlER9Vzr1CfLJodE3Ij/cKNy0qN7RZiHhAKiS7yYBz3t o04c5Qqi9y/COgZkbHROPHayg6Q7JhJbcJl31xr+/NhDTgDt3HIiGwCMqW4Pi2cJrDQN nuIjSreFZOpA1m5pWzNpH3Elc6aq1fX0h1y8YQqbu74TcxyW2JkAs93UBnMDWvUmLFbU Xm4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=bJyVhBOvdGDkIP0/RH31HGWsHRWL1HvW1z55EI58+0Y=; b=HHT/I7A1XHNCg7XXIClY9OxZuXf8VO9g+Ma9LNbbi11jI52/nRhb767iWFmWls+Alr TtiPz5hJXVbRVIo9FiUl/6FUTEhBQMJipXrkmRR9U7F1UnKtTuaxd1QpF7iCoMnL//jl lD2MmxHawLXXxYv/7lE1vBX1L/Ttn0EE7Lq3gfEarjg8eFtnm4BmJcQRFmLNZOksc2Sl x/Sa3BWn1TkwMK3Jftv2BVymUe3Dklyc4WxPHBoMQbbmOjqyJ32Z47XTLVI2u9TfCfMA B7CZ2FbONj1LD6zGdKJRzqGS57KLkxnPLg2u+CTF3vP9Ymdioi6rQepm6joqfs72xBz3 mY1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=gRSQBZGC; 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=linaro.org Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id j30-v6si18402330pgl.4.2018.10.17.16.01.13; Wed, 17 Oct 2018 16:01:13 -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=@linaro.org header.s=google header.b=gRSQBZGC; 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=linaro.org Received: from 165.28.230.35.bc.googleusercontent.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id B60C979BD5; Wed, 17 Oct 2018 23:01:10 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg1-f195.google.com (mail-pg1-f195.google.com [209.85.215.195]) by mail.openembedded.org (Postfix) with ESMTP id 7AE9679B5B for ; Wed, 17 Oct 2018 23:00:51 +0000 (UTC) Received: by mail-pg1-f195.google.com with SMTP id f8-v6so13224513pgq.5 for ; Wed, 17 Oct 2018 16:00:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=K2aHj+2viIIJ0GTaBiIrcK4oAi2YyPQdlCV7xihuww8=; b=gRSQBZGCd5esQqTVKWYYwZyxjxCQaMpZU9lXCd4jiB8YVqrzHApxq2fb5Uz3859byK qR80r4Eu8JgRiRB/lDnAjZMhBK8IxoYAKFjy8jkH1bEH6cfWNBFEfxj2A81Z6elvs9Vm /AeoYi6KApeKm/8WiNYXFxw0eRP4D3+QLebig= 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:mime-version:content-transfer-encoding; bh=K2aHj+2viIIJ0GTaBiIrcK4oAi2YyPQdlCV7xihuww8=; b=Bk/Ewi+jdWwKv/gLayZzrKMh4epyWyt3HOsnsZikR/1xHqIJjxeHtW3qH5tGEB6Pei ybLk1rIv3d8Yzya/WOsPIcEkFRbHtQSTAIuSSqklRf0MfEKmztmZpQ0d2LzdGX6lpuV7 bY0nxAqaCd4hqAEhLFTthhwpq+3bInAO8WbJgOcMhnwhVfwgWxEH/da1volnEI/FAcDu hAYL/WUQL0B6CZLlP8kvxeV1qJlj/JE6OiPLLuVgEqqfDAXFqn/fSqYx5w5rKUMcH/2t fQMoj8Nn28QqCST/1pRfN2tmNuVLhKrgDxowH8DmBarrHBWi4k7YzinhtdtAhbk0lDYT /Rjg== X-Gm-Message-State: ABuFfoj80YODeS3pQfcmvOBBW5AlC5qQ84PkwztpdtFKNovlMwFJvDyv gdrKEM6/E8NEmjCpx7la1xQYB6v8UB0= X-Received: by 2002:a63:7c5e:: with SMTP id l30-v6mr25828046pgn.45.1539817252340; Wed, 17 Oct 2018 16:00:52 -0700 (PDT) Received: from blackbox.Home ([200.68.141.5]) by smtp.gmail.com with ESMTPSA id i71-v6sm26467929pgc.87.2018.10.17.16.00.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Oct 2018 16:00:51 -0700 (PDT) From: =?utf-8?b?QW7DrWJhbCBMaW3Ds24=?= To: openembedded-core@lists.openembedded.org Date: Wed, 17 Oct 2018 18:00:44 -0500 Message-Id: <20181017230044.24098-2-anibal.limon@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181017230044.24098-1-anibal.limon@linaro.org> References: <20181017230044.24098-1-anibal.limon@linaro.org> MIME-Version: 1.0 Subject: [OE-core] [PATCH 2/2] meta/classes/testexport: Remove __pycache__ from exported tests 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: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org The __pycache__ is created based on python3 version in the build machine and isn't a garantee to be useful on the system that runs exported tests. Signed-off-by: Aníbal Limón --- meta/classes/testexport.bbclass | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meta/classes/testexport.bbclass b/meta/classes/testexport.bbclass index 8b01504d3a..f38d093e81 100644 --- a/meta/classes/testexport.bbclass +++ b/meta/classes/testexport.bbclass @@ -131,6 +131,11 @@ def copy_needed_files(d, tc): shutil.copy2(image_manifest, os.path.join(test_data_path, os.path.basename(image_manifest))) shutil.copy2(tdname, os.path.join(test_data_path, os.path.basename(tdname))) + for subdir, dirs, files in os.walk(export_path): + for dir in dirs: + if dir == '__pycache__': + shutil.rmtree(os.path.join(subdir, dir)) + # Create tar file for common parts of testexport create_tarball(d, "testexport.tar.gz", d.getVar("TEST_EXPORT_DIR"))