From patchwork Wed Jan 2 16:08:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anibal Limon X-Patchwork-Id: 154678 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp327921ljp; Wed, 2 Jan 2019 08:08:22 -0800 (PST) X-Google-Smtp-Source: ALg8bN7ZhoIp76BMRRWL1Pvo8NjOkp5iQYbOdqdoKgenZwlVSwFFgmxamLAKAThZaTMR5izk5DoI X-Received: by 2002:a62:30c3:: with SMTP id w186mr45108612pfw.39.1546445302322; Wed, 02 Jan 2019 08:08:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546445302; cv=none; d=google.com; s=arc-20160816; b=iUNUDhR0ezqrUoMIULzKbj5CZ3Yr+nyM34eo79PHs6itPQ5XUMRB4iWW/0kIkhU+n6 ZgwUzGC2EJHzwskBjPGRLIgb2pkMIFd0cyiCSX2jBolRPqAWXSgVpisz6x+df/kkGOOf pVMoLVVTNWXSAUHiVRWZRptCdVrte/EYZnWYYWBaWMNtH1hvMzmGtdgKHCqVdi7OCi0/ TJFb3GLUzquNrjRucp0lBjsxxH0eckgYbfekoKIbLh9MFSJ/OSTQR3cdoiBuJurVwqXf yFMzgL3L2CvQ3Ph1Bfiva9btxUE0ZcRZTCWY2VGNRWuf6TmsE1f2bo9ylCvJg69yxx9y IDSg== 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=qW7aUAw5ni2dC4iAi2ma/m6m+i30u0uDMwGyFjOexYY=; b=pnO27vMz/UFUt6pK3AfRjxc/o02KeoeZwQ9yHRvFuTwgKSF1v/XlF2YUPW8kUUr4u6 gl4SFOpX7ESQdcxNVf1Bzur03i4nFIlq8+5BC3khjc8qL8P1xkE7g0JPMYLJUFu1H7V4 FZR5ebuWHAYj5OOpcacfRvLvfLJA9jqpqcUJFlax7qidNFRknp1SEeGJoxqAGXHrSUVP I9CY7rrvufkUMFN9UGtmn8n4D1FgdwWofKkqGa3UsU4PutY5oazOjASYnZptH9YiAHsD H53z6A/VdxK67+f1ik7WWaHfA5iDqbNBk3wBo6O0JSn6MLBCPd7x9k9wSfWXWBdcSi3I lHvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="Id/Dus78"; 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 e4si46770714pgd.256.2019.01.02.08.08.22; Wed, 02 Jan 2019 08:08:22 -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=@linaro.org header.s=google header.b="Id/Dus78"; 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 451006BB2D; Wed, 2 Jan 2019 16:08:20 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-ot1-f65.google.com (mail-ot1-f65.google.com [209.85.210.65]) by mail.openembedded.org (Postfix) with ESMTP id 581416B96C for ; Wed, 2 Jan 2019 16:08:19 +0000 (UTC) Received: by mail-ot1-f65.google.com with SMTP id 32so27008501ota.12 for ; Wed, 02 Jan 2019 08:08:20 -0800 (PST) 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=0i06UE75OSMK5ENyfQ2MP3Ql5LZMneps8X3YPH1wzHk=; b=Id/Dus782+qBt2pY2xaT7TRziJY7VHugw3Jd3Kx3wWlGIzYXo6GfVXJO1uHMMkJCZG fxP1iUv2phE99+3qrSW7KS2khWWvIT9C1i4BzOtFeCGE57TGjk4uSeCCu13eRL5m2kwV VAhXBs1dCy8538u6L4oHdog4qs+fZtWZf0to4= 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=0i06UE75OSMK5ENyfQ2MP3Ql5LZMneps8X3YPH1wzHk=; b=Y0ZlrC686u5K/gdxWwi2wTnvhid7eqICoiCSMSVw5wSeYv9zqIYi83vBnksAw3llpk DTMqVICKS+ecBLySdm2MMEOrbD+eJ5cOMI++qV3emJr0Xv5XxufUccEZtnY650IixLxV FlcpjL+0il7DSyKeFt11C1Jw4TlywXkpevp4iKQD9Tq/IezvaIfGLTHAsZiG7qlqP8JI 3q3oKBV4RylWbWo4AuftuWU1X7zkQpL/f4hlsefj9cZD0LXPWuTxkzHxxLCPxQ+i6Vnb 7bMrPwU+g9ITCh4s6GzEqDUPk3OEt/6NCEzlkdHM+FCl9pZRt8+DwwdgwZyP+WwJ6Qcn RWmA== X-Gm-Message-State: AJcUukeZg6SoRl0pMJGgK4Rsy6bc/k0wZ3an+8/bbqBWwIDzvtnPA16r /l7KXpCpNzXdhU1ml7p+ZGlAqM8vPio= X-Received: by 2002:a9d:67ce:: with SMTP id c14mr29046232otn.341.1546445299942; Wed, 02 Jan 2019 08:08:19 -0800 (PST) Received: from blackbox.Home ([200.68.140.47]) by smtp.gmail.com with ESMTPSA id e6sm25275454otp.68.2019.01.02.08.08.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Jan 2019 08:08:19 -0800 (PST) From: =?utf-8?b?QW7DrWJhbCBMaW3Ds24=?= To: openembedded-core@lists.openembedded.org Date: Wed, 2 Jan 2019 10:08:13 -0600 Message-Id: <20190102160813.25934-1-anibal.limon@linaro.org> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Subject: [OE-core] [PATCHv3] 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 e8fa4a3b32..3c2209af91 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass @@ -201,12 +201,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').split() + 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)