Changeset: a40ed4c21682 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a40ed4c21682
Modified Files:
        testing/sqltest.py
Branch: mtest
Log Message:

dump with mclinet -D by default


diffs (20 lines):

diff --git a/testing/sqltest.py b/testing/sqltest.py
--- a/testing/sqltest.py
+++ b/testing/sqltest.py
@@ -570,8 +570,15 @@ class SQLTestCase():
             user = self.conn_ctx.username,
             passwd = self.conn_ctx.password)
         dump = None
+        if '--inserts' in args:
+            args = list(args)
+            cmd = 'sqldump'
+        else:
+            cmd = 'sql'
+            # TODO should more options be allowed here
+            args = ['-lsql', '-D']
         try:
-            with process.client('sqldump', **kwargs, args=list(args), 
stdout=process.PIPE, stderr=process.PIPE) as p:
+            with process.client(cmd, **kwargs, args=args, stdout=process.PIPE, 
stderr=process.PIPE) as p:
                 dump, err = p.communicate()
         except Exception as e:
             pass
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to