git://git.onelab.eu
/
tests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc065eb
)
-added popen3
author
Tony Mack
<tmack@cs.princeton.edu>
Wed, 26 Mar 2008 00:31:34 +0000
(
00:31
+0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Wed, 26 Mar 2008 00:31:34 +0000
(
00:31
+0000)
qaapi/qa/utils.py
patch
|
blob
|
history
diff --git
a/qaapi/qa/utils.py
b/qaapi/qa/utils.py
index
2ff395e
..
0e5a5a6
100644
(file)
--- 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)