summaryrefslogtreecommitdiff
path: root/tools/binman/state.py
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2025-04-11 14:32:02 -0600
committerTom Rini <trini@konsulko.com>2025-04-11 16:47:29 -0600
commita40fc5afaec079ee4e621965fed18dcc94240d8c (patch)
treea6d644d2f13d543f7da3f6de1ef1a8d6c9eec68b /tools/binman/state.py
parent407d68638fe32418d61681407effba2a303bb9ee (diff)
parent6f875290eb107106059f4edfcf8afe31bed9a378 (diff)
Merge patch series "binman: Check code-coverage requirements"
Simon Glass <sjg@chromium.org> says: This series adds a cover-coverage check to CI for Binman. The iMX8 tests are still not completed, so a work-around is included for those. A few fixes are included for some other problems. Link: https://lore.kernel.org/r/20250410124333.843527-1-sjg@chromium.org
Diffstat (limited to 'tools/binman/state.py')
-rw-r--r--tools/binman/state.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/binman/state.py b/tools/binman/state.py
index 6772d3678fe..f4d885c772a 100644
--- a/tools/binman/state.py
+++ b/tools/binman/state.py
@@ -411,8 +411,7 @@ def CheckSetHashValue(node, get_data_func):
m = hashlib.sha256()
m.update(get_data_func())
data = m.digest()
- if data is None:
- raise ValueError(f"Node '{node.path}': Unknown hash algorithm '{algo}'")
+ assert data
for n in GetUpdateNodes(hash_node):
n.SetData('value', data)