From c4e7f22aa084c5392f8f2a9a1da7d6f941b00716 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Wed, 26 Mar 2008 00:31:34 +0000 Subject: [PATCH] -added popen3 --- qaapi/qa/utils.py | 5 +++++ 1 file changed, 5 insertions(+) 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) -- 2.43.0