Changeset: 38f99f83207b for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=38f99f83207b
Modified Files:
testing/process.py
Branch: Aug2011
Log Message:
Also specify database when starting mclient from process.py.
diffs (21 lines):
diff --git a/testing/process.py b/testing/process.py
--- a/testing/process.py
+++ b/testing/process.py
@@ -217,7 +217,7 @@ class Popen(subprocess.Popen):
return stdout, stderr
def client(lang, args = [], stdin = None, stdout = None, stderr = None,
- port = os.getenv('MAPIPORT'), host = None,
+ port = os.getenv('MAPIPORT'), dbname = os.getenv('TSTDB'), host =
None,
user = 'monetdb', passwd = 'monetdb', log = False):
'''Start a client process.'''
if lang == 'mal':
@@ -239,6 +239,8 @@ def client(lang, args = [], stdin = None
del cmd[i]
break
cmd.append('--port=%d' % int(port))
+ if dbname is not None:
+ cmd.append('--database=%s' % dbname)
fnam = None
if user is not None or passwd is not None:
env = copy.deepcopy(os.environ)
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list