summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-08-02 16:37:54 +0300
committerSimon Glass <sjg@chromium.org>2021-08-08 20:27:27 +0300
commite679f39f7fc3eb083b2f957d748f81bbdc28f28c (patch)
tree425c25d8e65dd3bff20983e7a1ae178bd1856f13 /tools
parent5974718752d80d3772bd0ef45630ba4ea8c2eb64 (diff)
downloadu-boot-e679f39f7fc3eb083b2f957d748f81bbdc28f28c.tar.xz
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 <walter.lozano@collabora.com> Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Walter Lozano <walter.lozano@collabora.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/dtoc/test_fdt.py2
1 files changed, 1 insertions, 1 deletions
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)