Update of /cvsroot/monetdb/sql/src/test/BugDay_2005-10-06_2.8/Tests
In directory
sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv16190/sql/src/test/BugDay_2005-10-06_2.8/Tests
Modified Files:
Tag: SQL_2-20
MapiClient-dump.SF-905851.SQL.py
Log Message:
instead of calling Mlog, we let the python test scripts do the command line
logging themselves
Index: MapiClient-dump.SF-905851.SQL.py
===================================================================
RCS file:
/cvsroot/monetdb/sql/src/test/BugDay_2005-10-06_2.8/Tests/MapiClient-dump.SF-905851.SQL.py,v
retrieving revision 1.1.2.6
retrieving revision 1.1.2.7
diff -u -d -r1.1.2.6 -r1.1.2.7
--- MapiClient-dump.SF-905851.SQL.py 25 Oct 2007 09:36:31 -0000 1.1.2.6
+++ MapiClient-dump.SF-905851.SQL.py 29 Oct 2007 14:02:39 -0000 1.1.2.7
@@ -1,4 +1,4 @@
-import os, sys
+import os, sys, time
try:
import subprocess
except ImportError:
@@ -11,6 +11,9 @@
f = open(infile)
else:
f = None
+ Mlog = "\n%s %s\n\n" % (time.strftime('# %H:%M:%S
>',time.localtime(time.time())), cmd)
+ sys.stdout.write(Mlog)
+ sys.stderr.write(Mlog)
clt = subprocess.Popen(cmd, shell=True, stdin = f)
if f is not None:
f.close()
@@ -18,12 +21,12 @@
def main():
- client('Mlog -x %s' % os.getenv('SQL_CLIENT'),
+ client(os.getenv('SQL_CLIENT'),
os.path.join(os.getenv('RELSRCDIR'),
'JdbcClient_create_tables.sql'))
- client('Mlog -x %s' % os.getenv('SQL_CLIENT'),
+ client(os.getenv('SQL_CLIENT'),
os.path.join(os.getenv('RELSRCDIR'),
'JdbcClient_inserts_selects.sql'))
- client('Mlog -x %s' % os.getenv('SQL_DUMP'))
+ client(os.getenv('SQL_DUMP'))
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