summaryrefslogtreecommitdiff
path: root/tools/binman/ftest.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-03-05 20:19:09 -0700
committerSimon Glass <sjg@chromium.org>2022-03-18 19:24:25 -0600
commitce4e402a32733a1aee8437ef47689c59d6e53bc2 (patch)
treea22e799044d59386524fe4062b3c3de3717456b1 /tools/binman/ftest.py
parent5795497e8b030393eaffebbc24c38d118c5dbbde (diff)
binman: Add a consistent way to report errors with fit
Add a new function to handling reporting errors within a particular subnode of the FIT description. This can be used to make the format of these errors consistent. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
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 3d672e6e3e8..c09bf36caa8 100644
--- a/tools/binman/ftest.py
+++ b/tools/binman/ftest.py
@@ -5303,7 +5303,7 @@ fdt fdtmap Extract the devicetree blob from the fdtmap
"""Check handling of an FDT map when the section cannot be found"""
with self.assertRaises(ValueError) as exc:
self._DoReadFileDtb('224_fit_bad_oper.dts')
- self.assertIn("Node '/binman/fit': Unknown operation 'unknown'",
+ self.assertIn("Node '/binman/fit': subnode 'images/@fdt-SEQ': Unknown operation 'unknown'",
str(exc.exception))
def test_uses_expand_size(self):