From: Tony Mack Date: Wed, 26 Mar 2008 00:31:34 +0000 (+0000) Subject: -added popen3 X-Git-Tag: tests-4.2-4~159 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=c4e7f22aa084c5392f8f2a9a1da7d6f941b00716;p=tests.git -added popen3 --- diff --git a/qaapi/qa/utils.py b/qaapi/qa/utils.py index 2ff395e..0e5a5a6 100644 --- a/qaapi/qa/utils.py +++ b/qaapi/qa/utils.py @@ -23,6 +23,11 @@ def popen(command, fatal=True): if fatal and errors: raise Exception, "".join(errors) return (output, errors) + +def popen3(command): + (stdin, stdout, stderr) = os.popen3(command) + print >> logfile, "+ "+command + return (stdin, stdout, stderr) def commands(command, fatal = True): (status, output) = getstatusoutput(command)