aboutsummaryrefslogtreecommitdiff
path: root/tools/dtoc/fdt.py
diff options
context:
space:
mode:
authorSimon Glass2018-07-06 10:27:28 -0600
committerSimon Glass2018-07-09 09:11:00 -0600
commit2a2d91d0d6fbe4f5c0f336a75ff42dcf7b49a774 (patch)
tree1c96cd8eda6da21219a377019c8ce7173489b0f6 /tools/dtoc/fdt.py
parent960662404f492e7088e5a91833dfb0c19ef5450e (diff)
dtoc: Update fdt tests to increase code coverage
At present only some of the fdt functionality is tested. Add more tests to cover the rest of it. Also turn on test coverage, which is now 100% with a small exclusion for a Python 3 feature. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/dtoc/fdt.py')
-rw-r--r--tools/dtoc/fdt.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/tools/dtoc/fdt.py b/tools/dtoc/fdt.py
index e24acf12804..fd016bb8ce1 100644
--- a/tools/dtoc/fdt.py
+++ b/tools/dtoc/fdt.py
@@ -49,13 +49,6 @@ class Prop:
return
self.type, self.value = self.BytesToValue(bytes)
- def GetPhandle(self):
- """Get a (single) phandle value from a property
-
- Gets the phandle valuie from a property and returns it as an integer
- """
- return fdt_util.fdt32_to_cpu(self.value[:4])
-
def Widen(self, newprop):
"""Figure out which property type is more general
@@ -344,11 +337,6 @@ class Fdt:
"""
return self._fdt_obj
- def CheckErr(self, errnum, msg):
- if errnum:
- raise ValueError('Error %d: %s: %s' %
- (errnum, libfdt.fdt_strerror(errnum), msg))
-
def GetProps(self, node):
"""Get all properties from a node.