summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael E Brown <michael_e_brown@dell.com>2008-03-04 13:05:45 -0600
committerMichael E Brown <michael_e_brown@dell.com>2008-03-04 13:05:45 -0600
commit4299c5e45f12717b81caf6bd2c82a4ac6853d360 (patch)
treead28f74137913490c5cdb954871dca98bc869fb9
parentc0be8cccf2d6bfe48b33d05cb496588908300f39 (diff)
downloadmock-4299c5e45f12717b81caf6bd2c82a4ac6853d360.tar.gz
mock-4299c5e45f12717b81caf6bd2c82a4ac6853d360.tar.xz
mock-4299c5e45f12717b81caf6bd2c82a4ac6853d360.zip
log child return code for debugging.
-rw-r--r--py/mock/util.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/mock/util.py b/py/mock/util.py
index 8721110..9f0eb3a 100644
--- a/py/mock/util.py
+++ b/py/mock/util.py
@@ -308,6 +308,7 @@ def do(command, shell=False, chrootPath=None, cwd=None, timeout=0, raiseExc=True
if not niceExit:
raise commandTimeoutExpired, ("Timeout(%s) expired for command:\n # %s\n%s" % (timeout, cmd, output))
+ logger.debug("Child returncode was: %s" % str(child.returncode))
if raiseExc and child.returncode:
if returnOutput:
raise mock.exception.Error, ("Command failed: \n # %s\n%s" % (command, output), child.returncode)