From patchwork Tue Oct 16 23:21:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anibal Limon X-Patchwork-Id: 149010 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp5705285lji; Tue, 16 Oct 2018 16:21:59 -0700 (PDT) X-Google-Smtp-Source: ACcGV62ygx5BHeL/Bti+RUQy+DFfrm0K+lpllc6CPeFkRgeUu4LdkHWUxDH+DF8IRCrnVWxclpVW X-Received: by 2002:a17:902:4083:: with SMTP id c3-v6mr13514544pld.308.1539732119514; Tue, 16 Oct 2018 16:21:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539732119; cv=none; d=google.com; s=arc-20160816; b=snicX7kL3dzrmdX0S4ljl+oK4bfaYhG4O9FY++VnKgGBqVYL/DxWtQ+BfEacod1alm ijDFVHiskfvMT++XIYJo1bTkoPTUlmxF908BPAjY0eSh4GtFz0VugFRdpS0MkP9NEuVj CXFwQRhZVSbWbI+wKCyU2A/Bv+5NKpD5L85WNBgQyIesPdN3BydArEUARAbwMQaNfePm 0fygFybWSKS6JqN4y2ebyYqTNiJK+bCsCtM3mVL3mb9WQtAeHoh2rJl8KB4b90Omnb3s IOvUfZrR256NBkiIU+WD+fFWqJxqKejdaxTlZ0Wezr5tZ1UYYMWF/IYS8SvQVaEgOQx0 rAPg== 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:message-id:date:to:from:dkim-signature:delivered-to; bh=X8F51hjpcM9kJ9OwMmIzw40auR+IyPUbr0YYiRyCNBo=; b=FVg/u4dzSiYl4hASWwosglCg/i0i6tSFRdsTix5JBDmXHZzQNGHD8AQSRDBcbb/M2j ZT7gqHEMqQPatSBZ9NuRggXDrq9mKqIt7mosCbEqVCrLqGgdkia0jVMxORjx25T8HSxA GQARK/fwvSQyH5YPLUAVlpYhq/dF2IU6KBrG27soF7nAnrXejH90FX/Zx1DdJaM92L7U eE1pLgu8H/o7jcC/XTPohjvfhR8MtG7+5WHzZSE0l2sz+Bc2FR/nOjL3cj9nEQUI/49m 46tYndChliB1cNdWTfx2GGqGeZ/XGTS4+T1R9m05+f8szHNJXLZmYXJi34Bjjg8lfUtp g2QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=eFL+S2ik; 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 g11-v6si15613039pgb.135.2018.10.16.16.21.58; Tue, 16 Oct 2018 16:21:59 -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=eFL+S2ik; 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 BB7106079E; Tue, 16 Oct 2018 23:21:52 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-ed1-f67.google.com (mail-ed1-f67.google.com [209.85.208.67]) by mail.openembedded.org (Postfix) with ESMTP id CF7386079E for ; Tue, 16 Oct 2018 23:21:50 +0000 (UTC) Received: by mail-ed1-f67.google.com with SMTP id y20-v6so23034755eds.10 for ; Tue, 16 Oct 2018 16:21: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:mime-version :content-transfer-encoding; bh=lY8JZIgG090puD4Hr4J8giIJ3yCE3c678jX2ifelBcc=; b=eFL+S2ikBMSSx0RSRdAh14Ltwsy/em+FGVW7ZTA9xyMtAEIuOwimPtnecV/TCZFKax Ff3u7B1YRghsDnwzOvVL+OsUzQdqX4W6oPeiviYF5sNUf4zxQst7uu1ngWYSPw7ctIEX VqyXYg42Okh8kYxaRWYrEF8vfZeIq6gdhnK+k= 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:mime-version :content-transfer-encoding; bh=lY8JZIgG090puD4Hr4J8giIJ3yCE3c678jX2ifelBcc=; b=R71oi4h+vCsA57VMouH5eykBbqzZ9xEBLbXskeWZ2VniHR1GBOHen48xvjHZ0fHt2L d+jTUmTIV9zuXtaptXYBDx3DmzHWgwFTsdSEEfouvMjgE5boD+6ZHHX1Q5H7HDsAtOq9 s86B9LC3B7l8kIe4KTp9KqYNxIG7bqF2wvMoQrpqrAywMRysCxFGcRmhKlT3e20oZbIt 5DYC2UHmuNOMJWsSlmVI1J5pmYABt7L2Kn8uZolXhqiadEPY+W8pFSiA1BJXidnX+mp1 Jl2C0bMAIy50CVcufP2glFoGXvz9x/BNTLARYo5NxJcQ4fdZyONBqtzQqceDwyt1YXkE OXUQ== X-Gm-Message-State: ABuFfojan2pJ/RSEEzskSz1RaflmRVnF6S3cZcMguampVtm/+1j5Yknt nOzXCgTWGtR86ySAmTFrub28+xVkFDs= X-Received: by 2002:a50:8878:: with SMTP id c53-v6mr31787548edc.146.1539732111217; Tue, 16 Oct 2018 16:21:51 -0700 (PDT) Received: from blackbox.Home ([200.95.170.198]) by smtp.gmail.com with ESMTPSA id w31-v6sm7596929edb.8.2018.10.16.16.21.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Oct 2018 16:21:50 -0700 (PDT) From: =?utf-8?b?QW7DrWJhbCBMaW3Ds24=?= To: openembedded-core@lists.openembedded.org Date: Tue, 16 Oct 2018 18:21:43 -0500 Message-Id: <20181016232143.5016-1-anibal.limon@linaro.org> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Subject: [OE-core] [PATCH] meta/classes/testimage.bbclass: Only validate IMAGE_FSTYPES when is QEMU 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 When use simpleremote target the flash/boot process is executed manually, the IMAGE_FSTYPES validation is only needed when execute testimage against qemu. The supported_fstypes comes from oeqa.core.target.qemu module. Signed-off-by: Aníbal Limón --- meta/classes/testimage.bbclass | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index 2642a722e7..734cb7caae 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass @@ -194,12 +194,13 @@ def testimage_main(d): machine = d.getVar("MACHINE") # Get rootfs - fstypes = [fs for fs in d.getVar('IMAGE_FSTYPES').split(' ') - if fs in supported_fstypes] - if not fstypes: - bb.fatal('Unsupported image type built. Add a comptible image to ' - 'IMAGE_FSTYPES. Supported types: %s' % - ', '.join(supported_fstypes)) + fstypes = d.getVar('IMAGE_FSTYPES') + if d.getVar("TEST_TARGET") == "qemu": + fstypes = [fs for fs in fstypes if fs in supported_fstypes] + if not fstypes: + bb.fatal('Unsupported image type built. Add a comptible image to ' + 'IMAGE_FSTYPES. Supported types: %s' % + ', '.join(supported_fstypes)) rootfs = '%s.%s' % (image_name, fstypes[0]) # Get tmpdir (not really used, just for compatibility)