Skip to content

Commit 5dbdb6d

Browse files
committed
Include command on error output
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
1 parent 3e93a31 commit 5dbdb6d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/xmlsec/test/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ def run_cmd(args, softhsm_conf=None):
3232
if rv:
3333
with open(softhsm_conf) as f:
3434
conf = f.read()
35-
msg = '[code: {code}] [stdout: {out}] [stderr: {err}] [config: {conf}]'
35+
msg = '[cmd: {cmd}] [code: {code}] [stdout: {out}] [stderr: {err}] [config: {conf}]'
3636
msg = msg.format(
37-
code=rv, out=out.strip(), err=err.strip(), conf=conf,
37+
cmd=" ".join(args), code=rv, out=out.strip(), err=err.strip(), conf=conf,
3838
)
3939
raise RuntimeError(msg)

0 commit comments

Comments
 (0)