From 58caad188d5d4cd2ea6fb4c2da723d9cab379c0f Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 25 Nov 2019 11:52:51 +0100 Subject: runner: show failing command on build failure --- lib/runner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/runner.py b/lib/runner.py index 32eb950..85df2b6 100644 --- a/lib/runner.py +++ b/lib/runner.py @@ -290,13 +290,13 @@ def build(arch, app, opts=[]): res = subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True) if res.returncode != 0: - raise RuntimeError('Build failure: ' + res.stderr) + raise RuntimeError('Build failure, executing {}:\n'.format(command) + res.stderr) command = ['make', '-B', 'arch={}'.format(arch), 'app={}'.format(app)] command.extend(opts) res = subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True) if res.returncode != 0: - raise RuntimeError('Build failure: ' + res.stderr) + raise RuntimeError('Build failure, executing {}:\n '.format(command) + res.stderr) return command -- cgit v1.2.3