Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 748AAC4338F for ; Mon, 2 Aug 2021 13:38:08 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DEFE860232 for ; Mon, 2 Aug 2021 13:38:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org DEFE860232 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 813B982816; Mon, 2 Aug 2021 15:38:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="a9MFGw9q"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D3C6782816; Mon, 2 Aug 2021 15:38:02 +0200 (CEST) Received: from mail-oi1-x236.google.com (mail-oi1-x236.google.com [IPv6:2607:f8b0:4864:20::236]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7159682054 for ; Mon, 2 Aug 2021 15:37:59 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-oi1-x236.google.com with SMTP id n16so17537928oij.2 for ; Mon, 02 Aug 2021 06:37:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=iTTLWx8eNZy5wnkB/L+P7lpaXL8ssIqTDH8eyBDZkXw=; b=a9MFGw9qkkj5SZXUO9aDDBFySqCJZYahqU365MG9Bcs4BG2YrDhhl1fZWBZZK1PdFg voqKVOtdgqGdsn9qjEaqI/LXGqA4tAyzN58GX1hCLyqzg649y/9/EfO2rMX5pXWYbGPP QPS/35jd4w+eeGvnzjHSi0xZyoocaBgtoM0j4= 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=iTTLWx8eNZy5wnkB/L+P7lpaXL8ssIqTDH8eyBDZkXw=; b=rkuUqc2MPHxh8osZbrNpR4+1l8pRPDSGldkgrZKBpIC8XWvA+D9RGkAvqr3Lne0Hjv ci8zxJ/gc+2xunHtDPBdJglBGkM3Y/xUsY8ZtcjtB6oWf1q7aHT68YuVEjiQCo1B/0H7 o/N4t6VRXROeum1UKy+oynD8dA726P39Iw89nM5/VRyAEH4yApYDtt45UF+DLfoG+XB6 LWkeYzkmU3mFYY1v+NiWUxKi2y4n951TG0rD4i4Guk8ktnDPxXgP1+54tOJccAhAumkC WrI3WeqmN4co6KWpp0F97t62U/3ZZtCBpBh7sb8uoxpIgTDLHa+k81Tszmp0k1BNQfD/ DvzA== X-Gm-Message-State: AOAM530krrc4Y+sEop+Bf5+Jd6gosg3v7QFmTY9WhxnDIzCcsfmIjGjB X9JpIfIT9GEYZRYadwsLOgKRbIhXQ1goXNjq X-Google-Smtp-Source: ABdhPJwQ/VsubXCGS1dQgSyna+C9crEqmOynFuZGQGHXdi3gOYUWhei21O6y3J2rltGf8Cpy85lABg== X-Received: by 2002:a05:6808:914:: with SMTP id w20mr4891255oih.152.1627911477756; Mon, 02 Aug 2021 06:37:57 -0700 (PDT) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id s2sm1691414ooc.15.2021.08.02.06.37.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Aug 2021 06:37:56 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Walter Lozano , Simon Glass Subject: [PATCH] dtoc: Correct the intarray-widening test case Date: Mon, 2 Aug 2021 07:37:54 -0600 Message-Id: <20210802133754.2379453-1-sjg@chromium.org> X-Mailer: git-send-email 2.32.0.554.ge1b32706d8-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean This case was intended to check that widening an int array with an int does nothing. Fix it. Reported-by: Walter Lozano Signed-off-by: Simon Glass --- tools/dtoc/test_fdt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/dtoc/test_fdt.py b/tools/dtoc/test_fdt.py index 1119e6b7847..d104f3c7745 100755 --- a/tools/dtoc/test_fdt.py +++ b/tools/dtoc/test_fdt.py @@ -425,7 +425,7 @@ class TestProp(unittest.TestCase): # Widen an array of ints with an int (should do nothing) prop = self.node.props['intarray'] - prop2 = node2.props['intarray'] + prop2 = node2.props['intval'] self.assertEqual(Type.INT, prop.type) self.assertEqual(3, len(prop.value)) prop.Widen(prop2) -- 2.32.0.554.ge1b32706d8-goog