mirror of
https://git.yoctoproject.org/poky
synced 2026-09-15 06:49:33 +02:00
wic: remove runner.show API
Replaced runner.show call to exec_cmd call in bootimg-pcbios plugin. Removed runner.show API as it's not used anywhere else. [YOCTO #10618] (From OE-Core rev: 9749336c37249af99c92478c3e4dc8821cb9a816) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
2122dd7718
commit
d39a158855
@@ -82,30 +82,6 @@ def runtool(cmdln_or_args, catch=1):
|
||||
|
||||
return (process.returncode, out)
|
||||
|
||||
def show(cmdln_or_args):
|
||||
"""Show all messages using logger.debug."""
|
||||
|
||||
rcode, out = runtool(cmdln_or_args, catch=3)
|
||||
|
||||
if isinstance(cmdln_or_args, list):
|
||||
cmd = ' '.join(cmdln_or_args)
|
||||
else:
|
||||
cmd = cmdln_or_args
|
||||
|
||||
msg = 'running command: "%s"' % cmd
|
||||
if out:
|
||||
out = out.strip()
|
||||
if out:
|
||||
msg += ', with output::'
|
||||
msg += '\n +----------------'
|
||||
for line in out.splitlines():
|
||||
msg += '\n | %s' % line
|
||||
msg += '\n +----------------'
|
||||
|
||||
logger.debug(msg)
|
||||
|
||||
return rcode
|
||||
|
||||
def outs(cmdln_or_args, catch=1):
|
||||
# get the outputs of tools
|
||||
return runtool(cmdln_or_args, catch)[1].strip()
|
||||
|
||||
Reference in New Issue
Block a user