diff options
| author | Simon Glass <[email protected]> | 2018-09-14 04:57:08 -0600 |
|---|---|---|
| committer | Simon Glass <[email protected]> | 2018-09-28 11:09:01 -0600 |
| commit | d178eab8f92cb2d67288e01d1ae5b0eb8d0f8db1 (patch) | |
| tree | 9a6e63e0c1c70795e2c0ea505d0bd343a50d5044 /tools/binman/ftest.py | |
| parent | f069303852bdfa1303cd5787667bd7924f0482d9 (diff) | |
binman: Allow 'fill' entry to have a size of 0
The check for this should be for None, not 0. Fix it and add a test.
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'tools/binman/ftest.py')
| -rw-r--r-- | tools/binman/ftest.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py index a8456c26157..7f82264f8ad 100644 --- a/tools/binman/ftest.py +++ b/tools/binman/ftest.py @@ -1364,6 +1364,11 @@ class TestFunctional(unittest.TestCase): self.assertIn("Node '/binman/u-boot': Please use 'offset' instead of " "'pos'", str(e.exception)) + def testFillZero(self): + """Test for an fill entry type with a size of 0""" + data = self._DoReadFile('80_fill_empty.dts') + self.assertEqual(chr(0) * 16, data) + if __name__ == "__main__": unittest.main() |
