Changeset: 952acdb0a7a1 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=952acdb0a7a1
Modified Files:
testing/process.py
Branch: Aug2011
Log Message:
Added 'PIPE' option to process.server's stdout parameter.
If the value is process.PIPE, the output is buffered through our own
class, but if is is the string 'PIPE', it is really a pipe.
diffs (18 lines):
diff --git a/testing/process.py b/testing/process.py
--- a/testing/process.py
+++ b/testing/process.py
@@ -279,9 +279,13 @@ def client(lang, args = [], stdin = None
if stdin is None:
# if no input provided, use /dev/null as input
stdin = open(os.devnull)
+ if stdout == 'PIPE':
+ out = PIPE
+ else:
+ out = stdout
p = Popen(cmd + args,
stdin = stdin,
- stdout = stdout,
+ stdout = out,
stderr = stderr,
shell = False,
env = env,
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list