summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael E Brown <michael_e_brown@dell.com>2008-03-31 17:34:52 -0500
committerMichael E Brown <michael_e_brown@dell.com>2008-03-31 17:34:52 -0500
commitb9313a12c37362126128284aa31f27ee47b2e80c (patch)
tree9284dc798b0a9b029d8707f0060a6907a601d537
parent97d9d11d4c68648efe347049afe68e538d250f56 (diff)
downloadmock-b9313a12c37362126128284aa31f27ee47b2e80c.tar.gz
mock-b9313a12c37362126128284aa31f27ee47b2e80c.tar.xz
mock-b9313a12c37362126128284aa31f27ee47b2e80c.zip
fix typo which causes exception in command-timeout code (which was trying to raise exception)
-rw-r--r--py/mock/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/mock/util.py b/py/mock/util.py
index 9f0eb3a..7f46b94 100644
--- a/py/mock/util.py
+++ b/py/mock/util.py
@@ -306,7 +306,7 @@ def do(command, shell=False, chrootPath=None, cwd=None, timeout=0, raiseExc=True
os.killpg(child.pid, 9)
if not niceExit:
- raise commandTimeoutExpired, ("Timeout(%s) expired for command:\n # %s\n%s" % (timeout, cmd, output))
+ raise commandTimeoutExpired, ("Timeout(%s) expired for command:\n # %s\n%s" % (timeout, command, output))
logger.debug("Child returncode was: %s" % str(child.returncode))
if raiseExc and child.returncode: