summaryrefslogtreecommitdiff
path: root/tools/buildman/builderthread.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-11-09 19:14:48 -0700
committerSimon Glass <sjg@chromium.org>2022-11-22 15:13:35 -0700
commit35b6e53d0d65ec59d73653ac194c0317621b16cf (patch)
tree2dc7c8db7da036fb0bed4725c2c4d00316d467d5 /tools/buildman/builderthread.py
parentcd6889d8967e1afa00dc244e26b2eb18a2f3f4d7 (diff)
downloadu-boot-35b6e53d0d65ec59d73653ac194c0317621b16cf.tar.gz
u-boot-35b6e53d0d65ec59d73653ac194c0317621b16cf.tar.bz2
u-boot-35b6e53d0d65ec59d73653ac194c0317621b16cf.zip
buildman: Detect binman reporting missing blobs
Buildman should consider a build as a success (with warnings) if missing blobs have been dealt with by binman, even though buildman itself returns and error code overall. This is how other warnings are dealt with. We cannot easily access the 103 exit code, so detect the problem in the output. With this change, missing blobs result in an exit code of 101, although they still indicate failure. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/buildman/builderthread.py')
-rw-r--r--tools/buildman/builderthread.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/buildman/builderthread.py b/tools/buildman/builderthread.py
index 6240e08c76..065d836d68 100644
--- a/tools/buildman/builderthread.py
+++ b/tools/buildman/builderthread.py
@@ -288,10 +288,14 @@ class BuilderThread(threading.Thread):
args.append('cfg')
result = self.Make(commit, brd, 'build', cwd, *args,
env=env)
+ if (result.return_code == 2 and
+ ('Some images are invalid' in result.stderr)):
+ # This is handled later by the check for output in
+ # stderr
+ result.return_code = 0
if adjust_cfg:
errs = cfgutil.check_cfg_file(cfg_file, adjust_cfg)
if errs:
- print('errs', errs)
result.stderr += errs
result.return_code = 1
result.stderr = result.stderr.replace(src_dir + '/', '')