diff options
author | Simon Glass <sjg@chromium.org> | 2022-02-08 10:59:44 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2022-02-22 10:05:44 -0700 |
commit | 8db1f9958ff7dfc54ef673607d47694dd672dae7 (patch) | |
tree | 09d342b28720857e65161e7747ac34b270394d37 /tools/binman/ftest.py | |
parent | 730922205b107acb80e51ee3c9e2e244ba8968b8 (diff) |
binman: Correct the error message for a bad hash algorithm
This shows an internal type at present, rather than the algorithm name.
Fix it and update the test to catch this.
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.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py index f8e73c6f9bf..4616a29deb6 100644 --- a/tools/binman/ftest.py +++ b/tools/binman/ftest.py @@ -2076,7 +2076,7 @@ class TestFunctional(unittest.TestCase): def testHashBadAlgo(self): with self.assertRaises(ValueError) as e: self._DoReadFileDtb('092_hash_bad_algo.dts', update_dtb=True) - self.assertIn("Node '/binman/u-boot': Unknown hash algorithm", + self.assertIn("Node '/binman/u-boot': Unknown hash algorithm 'invalid'", str(e.exception)) def testHashSection(self): |