Update of /cvsroot/monetdb/sql/src/test/Dump/Tests
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv31846/src/test/Dump/Tests
Modified Files:
reload.SQL.py
Log Message:
propagated changes of Monday Oct 22 2007 - Monday Oct 22 2007
from the SQL_2-20 branch to the development trunk
Index: reload.SQL.py
===================================================================
RCS file: /cvsroot/monetdb/sql/src/test/Dump/Tests/reload.SQL.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- reload.SQL.py 15 Oct 2007 15:29:53 -0000 1.3
+++ reload.SQL.py 22 Oct 2007 12:25:09 -0000 1.4
@@ -6,20 +6,20 @@
import MonetDB.subprocess26 as subprocess
def main():
- TSTTRGDIR = os.environ['TSTTRGDIR']
- SQLCLIENT = os.environ['SQLCLIENT']
- MAPIPORT = os.environ['MAPIPORT']
+ TSTTRGDIR = os.environ['TSTTRGDIR']
+ SQLCLIENT = os.environ['SQLCLIENT']
+ MAPIPORT = os.environ['MAPIPORT']
+
+ cmd = str('%s -p %s' % (SQLCLIENT, MAPIPORT))
+ f = open(os.path.join(TSTTRGDIR, 'dumpoutput.sql'), 'r')
+ clt = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE,
stdin=subprocess.PIPE, stderr=subprocess.PIPE)
+ clt.stdin.write(f.read())
+ clt.stdin.close()
+ f.close()
+ sys.stdout.write(clt.stdout.read())
+ clt.stdout.close()
+ sys.stderr.write(clt.stderr.read())
+ clt.stderr.close()
- cmd = str('%s -p %s' % (SQLCLIENT, MAPIPORT))
- f = open(os.path.join(TSTTRGDIR, 'dumpoutput.sql'), 'r')
- clt = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE,
stdin=subprocess.PIPE, stderr=subprocess.PIPE)
- clt.stdin.write(f.read())
- clt.stdin.close()
- f.close()
- sys.stdout.write(clt.stdout.read())
- clt.stdout.close()
- sys.stderr.write(clt.stderr.read())
- clt.stderr.close()
-
main()
-------------------------------------------------------------------------
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-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins