Skip to content
Browse files

west: build: Construct CalledProcessError with positional args

Since west's relies on the args tuple with the returncode
and the cmd, create the CalledProcessError using the correct
positional args.

Signed-off-by: Carles Cufi <>
  • Loading branch information...
carlescufi committed May 4, 2019
1 parent 4d975db commit c9f4bb6799e6ad7730fb8926d6524c467dd2603a
Showing with 1 addition and 2 deletions.
  1. +1 −2 scripts/west_commands/
@@ -49,8 +49,7 @@ def run_cmake(args, cwd=None, capture_output=False):
return None
# A real error occurred, raise an exception
raise subprocess.CalledProcessError(cmd=p.args,
raise subprocess.CalledProcessError(p.returncode, p.args)

def run_build(build_directory, extra_args=(), cwd=None, capture_output=False):

0 comments on commit c9f4bb6

Please sign in to comment.
You can’t perform that action at this time.