From: Simon Glass Date: Mon, 2 Aug 2021 13:37:54 +0000 (-0600) Subject: dtoc: Correct the intarray-widening test case X-Git-Tag: v2021.10-rc2~11^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e679f39f7fc3eb083b2f957d748f81bbdc28f28c;p=pandora-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 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)