summaryrefslogtreecommitdiff
path: root/tools/binman/ftest.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-09-14 04:57:19 -0600
committerSimon Glass <sjg@chromium.org>2018-09-28 11:09:01 -0600
commitc55a50f558f13c6c018c0e5cc0f0d765711a3828 (patch)
tree5ba2ee5d52f3426569f33c199aab8d01e8d69a58 /tools/binman/ftest.py
parent6c234bfbf7a9c5b33c3bea92e037c45d37e94f35 (diff)
binman: Move state information into a new module
At present the control module has state information in it, since it is the primary user of this. But it is a bit odd to have entries and other modules importing control to obtain this information. It seems better to have a dedicated state module, which control can use as well. Create a new module using code from control and update other modules to use it. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/ftest.py')
-rw-r--r--tools/binman/ftest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py
index 290e9aebf1..867179702d 100644
--- a/tools/binman/ftest.py
+++ b/tools/binman/ftest.py
@@ -23,6 +23,7 @@ import fdt
import fdt_util
import fmap_util
import test_util
+import state
import tools
import tout
@@ -258,7 +259,7 @@ class TestFunctional(unittest.TestCase):
retcode = self._DoTestFile(fname, map=map, update_dtb=update_dtb,
entry_args=entry_args)
self.assertEqual(0, retcode)
- out_dtb_fname = control.GetFdtPath('u-boot.dtb')
+ out_dtb_fname = state.GetFdtPath('u-boot.dtb')
# Find the (only) image, read it and return its contents
image = control.images['image']