aboutsummaryrefslogtreecommitdiff
path: root/tools/dtoc/test_fdt.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-07-20 12:24:08 -0600
committerSimon Glass <sjg@chromium.org>2019-07-29 09:38:06 -0600
commitf6e02497ae063b7939b0670153d22a7b17bf4408 (patch)
tree4092ea48dfe2cd52cd9280dad8baf907df9f22a2 /tools/dtoc/test_fdt.py
parent313533018dc175a5552a8ccac9d6bcd780e824df (diff)
downloadu-boot-f6e02497ae063b7939b0670153d22a7b17bf4408.zip
u-boot-f6e02497ae063b7939b0670153d22a7b17bf4408.tar.gz
u-boot-f6e02497ae063b7939b0670153d22a7b17bf4408.tar.bz2
binman: Update state when replacing device-tree entries
Since the state module holds references to all the device trees used by binman, it must be updated when the device trees are updated. Add support for this. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/dtoc/test_fdt.py')
-rwxr-xr-xtools/dtoc/test_fdt.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/dtoc/test_fdt.py b/tools/dtoc/test_fdt.py
index 16a4430..028c8cb 100755
--- a/tools/dtoc/test_fdt.py
+++ b/tools/dtoc/test_fdt.py
@@ -449,6 +449,11 @@ class TestProp(unittest.TestCase):
self.assertIn("node '/spl-test': Missing property 'one'",
str(e.exception))
+ def testGetFilename(self):
+ """Test the dtb filename can be provided"""
+ self.assertEqual(tools.GetOutputFilename('source.dtb'),
+ self.dtb.GetFilename())
+
class TestFdtUtil(unittest.TestCase):
"""Tests for the fdt_util module