From abfe17e2cba0a026911d17b00ad6174009707c81 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 19 Jan 2012 16:41:59 -0500 Subject: [PATCH] ostbuild: Show cwd on failure This is helpful for disambiguation. --- src/ostbuild/pyostbuild/subprocess_helpers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ostbuild/pyostbuild/subprocess_helpers.py b/src/ostbuild/pyostbuild/subprocess_helpers.py index 66e365be..0d1ca8d6 100755 --- a/src/ostbuild/pyostbuild/subprocess_helpers.py +++ b/src/ostbuild/pyostbuild/subprocess_helpers.py @@ -63,7 +63,8 @@ def run_sync_get_output(args, cwd=None, env=None, stdout=None, stderr=None, none else: logfn = None if logfn is not None: - logfn("cmd '%s' exited with code %d, %d bytes of output" % (subprocess.list2cmdline(args), proc.returncode, len(output))) + logfn("cmd '%s' (cwd=%s) exited with code %d, %d bytes of output" % (subprocess.list2cmdline(args), + cwd, proc.returncode, len(output))) if proc.returncode == 0: return output return None