diff options
Diffstat (limited to 'scripts/lib/wic/utils/runner.py')
| -rw-r--r-- | scripts/lib/wic/utils/runner.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/scripts/lib/wic/utils/runner.py b/scripts/lib/wic/utils/runner.py index 56d7ea3adf..348557aee8 100644 --- a/scripts/lib/wic/utils/runner.py +++ b/scripts/lib/wic/utils/runner.py | |||
| @@ -82,30 +82,6 @@ def runtool(cmdln_or_args, catch=1): | |||
| 82 | 82 | ||
| 83 | return (process.returncode, out) | 83 | return (process.returncode, out) |
| 84 | 84 | ||
| 85 | def show(cmdln_or_args): | ||
| 86 | """Show all messages using logger.debug.""" | ||
| 87 | |||
| 88 | rcode, out = runtool(cmdln_or_args, catch=3) | ||
| 89 | |||
| 90 | if isinstance(cmdln_or_args, list): | ||
| 91 | cmd = ' '.join(cmdln_or_args) | ||
| 92 | else: | ||
| 93 | cmd = cmdln_or_args | ||
| 94 | |||
| 95 | msg = 'running command: "%s"' % cmd | ||
| 96 | if out: | ||
| 97 | out = out.strip() | ||
| 98 | if out: | ||
| 99 | msg += ', with output::' | ||
| 100 | msg += '\n +----------------' | ||
| 101 | for line in out.splitlines(): | ||
| 102 | msg += '\n | %s' % line | ||
| 103 | msg += '\n +----------------' | ||
| 104 | |||
| 105 | logger.debug(msg) | ||
| 106 | |||
| 107 | return rcode | ||
| 108 | |||
| 109 | def outs(cmdln_or_args, catch=1): | 85 | def outs(cmdln_or_args, catch=1): |
| 110 | # get the outputs of tools | 86 | # get the outputs of tools |
| 111 | return runtool(cmdln_or_args, catch)[1].strip() | 87 | return runtool(cmdln_or_args, catch)[1].strip() |
