summaryrefslogtreecommitdiff
path: root/tools/binman/ftest.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-11-23 21:03:47 +0300
committerSimon Glass <sjg@chromium.org>2021-12-02 19:16:30 +0300
commitd34bcdd054d4c9ccbbbc49a267168e5ad1bc0e78 (patch)
tree55a2ae6e63fa6bcb62a52a9d2808d3848d6ea1e6 /tools/binman/ftest.py
parentb6caf0ebcabd20499f3171e12bcbee01a0b3d724 (diff)
downloadu-boot-d34bcdd054d4c9ccbbbc49a267168e5ad1bc0e78.tar.xz
binman: Allow overriding BuildSectionData()
This method is currently marked private. However it is useful to be able to subclass it, since much of the entry_Section code can be reused. Rename it. Also document one confusing part of this code, so people can understand how to add a test for this case. Fix up a few pylint warnings to avoid regressing the score. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/ftest.py')
-rw-r--r--tools/binman/ftest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py
index 6a36e8f315..3982560c47 100644
--- a/tools/binman/ftest.py
+++ b/tools/binman/ftest.py
@@ -4533,7 +4533,7 @@ class TestFunctional(unittest.TestCase):
def testCollectionSection(self):
"""Test a collection where a section must be built first"""
# Sections never have their contents when GetData() is called, but when
- # _BuildSectionData() is called with required=True, a section will force
+ # BuildSectionData() is called with required=True, a section will force
# building the contents, producing an error is anything is still
# missing.
data = self._DoReadFile('199_collection_section.dts')