mirror of
git://git.yoctoproject.org/poky
synced 2026-09-16 22:49:27 +00:00
bitbake-dev: Fix python function task execution failure handling
This commit is contained in:
parent
6d7f3cbcb7
commit
4f5bb4683d
@ -204,8 +204,11 @@ def exec_func_python(func, d, runfile, logfile):
|
|||||||
g['bb'] = bb
|
g['bb'] = bb
|
||||||
g['os'] = os
|
g['os'] = os
|
||||||
g['d'] = d
|
g['d'] = d
|
||||||
utils.better_exec(comp, g, tmp, bbfile)
|
try:
|
||||||
|
utils.better_exec(comp, g, tmp, bbfile)
|
||||||
|
except:
|
||||||
|
bb.msg.error(bb.msg.domain.Build, "Function %s failed" % func)
|
||||||
|
raise FuncFailed("function %s failed" % func, logfile)
|
||||||
|
|
||||||
def exec_func_shell(func, d, runfile, logfile, flags):
|
def exec_func_shell(func, d, runfile, logfile, flags):
|
||||||
"""Execute a shell BB 'function' Returns true if execution was successful.
|
"""Execute a shell BB 'function' Returns true if execution was successful.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user