From: Simon Glass Date: Mon, 2 Aug 2021 13:37:54 +0000 (-0600) Subject: dtoc: Correct the intarray-widening test case X-Git-Tag: v2025.01-rc5-pxa1908~1755^2 X-Git-Url: http://git.dujemihanovic.xyz/img/static/gitweb.css?a=commitdiff_plain;h=e679f39f7fc3eb083b2f957d748f81bbdc28f28c;p=u-boot.git dtoc: Correct the intarray-widening test case 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 Reviewed-by: Walter Lozano --- diff --git a/tools/dtoc/test_fdt.py b/tools/dtoc/test_fdt.py index 1119e6b784..d104f3c774 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)