summaryrefslogtreecommitdiff
path: root/tools/binman/ftest.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-10-26 17:40:05 -0600
committerSimon Glass <sjg@chromium.org>2020-10-29 14:42:59 -0600
commite6bed4f1812c1666eeab794694c4b3765f41c143 (patch)
tree639acab5b7366af485b6029e69cdc30312529de4 /tools/binman/ftest.py
parent72628cdf58ec2737637b41ec3dad4a30fe5090e0 (diff)
binman: Expand the error message for breaching a section
Add in a few more details to this error message to make it easier to see what is going on. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/ftest.py')
-rw-r--r--tools/binman/ftest.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py
index adc16038d99..4f7e22612cc 100644
--- a/tools/binman/ftest.py
+++ b/tools/binman/ftest.py
@@ -970,8 +970,9 @@ class TestFunctional(unittest.TestCase):
"""Test that the end-at-4gb property checks for offset boundaries"""
with self.assertRaises(ValueError) as e:
self._DoTestFile('028_pack_4gb_outside.dts')
- self.assertIn("Node '/binman/u-boot': Offset 0x0 (0) is outside "
- "the section starting at 0xffffffe0 (4294967264)",
+ self.assertIn("Node '/binman/u-boot': Offset 0x0 (0) size 0x4 (4) "
+ "is outside the section '/binman' starting at "
+ '0xffffffe0 (4294967264) of size 0x20 (32)',
str(e.exception))
def testPackX86Rom(self):