Changeset: f1b04ff85e36 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f1b04ff85e36
Modified Files:
        sql/src/test/VOC/Tests/VOC.SQL.py
Branch: Oct2010
Log Message:

Don't send all output through Python.
This should speed up the test since there is a lot of output.


diffs (28 lines):

diff -r 3985728c6e41 -r f1b04ff85e36 sql/src/test/VOC/Tests/VOC.SQL.py
--- a/sql/src/test/VOC/Tests/VOC.SQL.py Tue Oct 26 17:07:38 2010 +0200
+++ b/sql/src/test/VOC/Tests/VOC.SQL.py Tue Oct 26 17:08:47 2010 +0200
@@ -4,14 +4,13 @@
 d = os.environ['RELSRCDIR']
 
 def client(file, user, passwd):
+    sys.stdout.flush()
+    sys.stderr.flush()
     c = process.client(lang = 'sql',
                        user = user, passwd = passwd,
                        args = [os.path.join(d, os.pardir, file)],
-                       stdout = process.PIPE, stderr = process.PIPE,
                        log = True)
-    out, err = c.communicate()
-    sys.stdout.write(out)
-    sys.stdout.write(err)
+    c.communicate()
 
 client('VOCcreate_user.sql', 'monetdb', 'monetdb')
 client('VOCschema.sql', 'voc', 'voc')
@@ -20,6 +19,3 @@
 client('VOCmanual_examples.sql', 'voc', 'voc')
 client('VOCdrop.sql', 'voc', 'voc')
 client('VOCdrop_user.sql', 'monetdb', 'monetdb')
-
-sys.stdout.flush()
-sys.stderr.flush()
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to