summaryrefslogtreecommitdiff
path: root/tools/binman
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-27 07:38:20 -0600
committerSimon Glass <sjg@chromium.org>2017-06-02 10:16:47 -0600
commit1d88ebb2702d54f04ecda1899e43bb9fb06dad3a (patch)
treead63ffe392e6aad7991f6bcc24d34829ec0fde1f /tools/binman
parentee95d10ba95092d41dfd740628b04f2b8e9cc8f6 (diff)
fdt: Update fdt_test to use 'dt' instead of 'fdt'
Since fdt is a module it conflicts with this variable name and prevents it being used in tests. Rename the variable. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman')
-rw-r--r--tools/binman/fdt_test.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/tools/binman/fdt_test.py b/tools/binman/fdt_test.py
index 1d9494e52f4..12edeaba6c3 100644
--- a/tools/binman/fdt_test.py
+++ b/tools/binman/fdt_test.py
@@ -28,21 +28,21 @@ class TestFdt(unittest.TestCase):
def GetCompiled(self, fname):
return fdt_util.EnsureCompiled(self.TestFile(fname))
- def _DeleteProp(self, fdt):
- node = fdt.GetNode('/microcode/update@0')
+ def _DeleteProp(self, dt):
+ node = dt.GetNode('/microcode/update@0')
node.DeleteProp('data')
def testFdtNormal(self):
fname = self.GetCompiled('34_x86_ucode.dts')
- fdt = FdtScan(fname)
- self._DeleteProp(fdt)
+ dt = FdtScan(fname)
+ self._DeleteProp(dt)
def testFdtFallback(self):
fname = self.GetCompiled('34_x86_ucode.dts')
- fdt = FdtScan(fname, True)
- fdt.GetProp('/microcode/update@0', 'data')
+ dt = FdtScan(fname, True)
+ dt.GetProp('/microcode/update@0', 'data')
self.assertEqual('fred',
- fdt.GetProp('/microcode/update@0', 'none', default='fred'))
+ dt.GetProp('/microcode/update@0', 'none', default='fred'))
self.assertEqual('12345678 12345679',
- fdt.GetProp('/microcode/update@0', 'data', typespec='x'))
- self._DeleteProp(fdt)
+ dt.GetProp('/microcode/update@0', 'data', typespec='x'))
+ self._DeleteProp(dt)