diff options
author | Simon Glass <sjg@chromium.org> | 2018-09-14 13:57:18 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-09-28 20:09:01 +0300 |
commit | 6c234bfbf7a9c5b33c3bea92e037c45d37e94f35 (patch) | |
tree | 165ca39ca97d8b10e71e8d6f8c436909a6b08d63 /tools/binman/entry_test.py | |
parent | 746aee3f2f8c0c7534ad7ac7d438ccec35c6c99c (diff) | |
download | u-boot-6c234bfbf7a9c5b33c3bea92e037c45d37e94f35.tar.xz |
binman: Add an entry method for getting the default filename
Various entry implementations provide a way to obtain the default filename
for an entry. But at present there is no base-class implementation for
this function. Add one so that the API is defined.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/entry_test.py')
-rw-r--r-- | tools/binman/entry_test.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/binman/entry_test.py b/tools/binman/entry_test.py index 4100bcc3d3..69d85b4ced 100644 --- a/tools/binman/entry_test.py +++ b/tools/binman/entry_test.py @@ -65,6 +65,11 @@ class TestEntry(unittest.TestCase): sub_entry = entry.Entry(None, None, sub_node, read_node=False) self.assertEqual('root.subnode', sub_entry.GetUniqueName()) + def testGetDefaultFilename(self): + """Trivial test for this base class function""" + import entry + base_entry = entry.Entry(None, None, None, read_node=False) + self.assertIsNone(base_entry.GetDefaultFilename()) if __name__ == "__main__": unittest.main() |