Update of /cvsroot/monetdb/MonetDB5/src/optimizer/Tests
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv24635

Modified Files:
      Tag: MonetDB_5-2
        remote00.py 
Log Message:
os.popen2() with keyword arguments is not portable.


Index: remote00.py
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/optimizer/Tests/remote00.py,v
retrieving revision 1.6
retrieving revision 1.6.8.1
diff -u -d -r1.6 -r1.6.8.1
--- remote00.py 17 Jan 2007 15:45:09 -0000      1.6
+++ remote00.py 5 Oct 2007 08:28:05 -0000       1.6.8.1
@@ -3,7 +3,7 @@
 
 class Popen:
        def __init__(self, cmd):
-               self.stdin,self.stdout = os.popen2(cmd, bufsize=0, mode='t'); 
+               self.stdin,self.stdout = os.popen2(cmd); 
 
 def server_start(x,dbname,mapi_port):
     srvcmd = '%s --debug=10 --dbname "%s"' % (re.sub('mapi_port=[^ ]* 
','mapi_port=%d ' % mapi_port,os.getenv('MSERVER')),dbname)
@@ -39,10 +39,14 @@
     x += 1; srv2 = server_start(x, "db" + str(x), 12346)
 
     srv1.stdin.write(prelude_1)
+    srv1.stdin.flush()
     srv2.stdin.write(prelude_2 % (12345))
+    srv2.stdin.flush()
    
     srv1.stdin.write("clients.quit();\n");
+    srv1.stdin.flush()
     srv2.stdin.write("clients.quit();\n");
+    srv2.stdin.flush()
 
     server_stop(srv1);
     server_stop(srv2);


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to