diff options
Diffstat (limited to 'poky/bitbake/lib/bb/process.py')
-rw-r--r-- | poky/bitbake/lib/bb/process.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/poky/bitbake/lib/bb/process.py b/poky/bitbake/lib/bb/process.py index 7c3995cce..d5a1775fc 100644 --- a/poky/bitbake/lib/bb/process.py +++ b/poky/bitbake/lib/bb/process.py @@ -181,5 +181,8 @@ def run(cmd, input=None, log=None, extrafiles=None, **options): stderr = stderr.decode("utf-8") if pipe.returncode != 0: + if log: + # Don't duplicate the output in the exception if logging it + raise ExecutionError(cmd, pipe.returncode, None, None) raise ExecutionError(cmd, pipe.returncode, stdout, stderr) return stdout, stderr |