diff options
author | Michael E Brown <michael_e_brown@dell.com> | 2008-03-31 17:34:52 -0500 |
---|---|---|
committer | Michael E Brown <michael_e_brown@dell.com> | 2008-03-31 17:34:52 -0500 |
commit | b9313a12c37362126128284aa31f27ee47b2e80c (patch) | |
tree | 9284dc798b0a9b029d8707f0060a6907a601d537 /py/mock | |
parent | 97d9d11d4c68648efe347049afe68e538d250f56 (diff) | |
download | mock-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)
Diffstat (limited to 'py/mock')
-rw-r--r-- | py/mock/util.py | 2 |
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: |