Commit 7b77f238 authored by Julien Muchembled's avatar Julien Muchembled

run_test_suite: make expansion of sql connection strings stable

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41847 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 16f437c6
...@@ -244,7 +244,7 @@ class ERP5TypeTestSuite(TestSuite): ...@@ -244,7 +244,7 @@ class ERP5TypeTestSuite(TestSuite):
def runUnitTest(self, *args, **kw): def runUnitTest(self, *args, **kw):
if self.instance: if self.instance:
args = ('--instance_home=unit_test.%u' % self.instance,) + args args = ('--instance_home=unit_test.%u' % self.instance,) + args
mysql_db_list = [string.Template(x).substitute(I=self.instance or '') mysql_db_list = [string.Template(x).substitute(I=self.instance or '1')
for x in self.mysql_db_list] for x in self.mysql_db_list]
if len(mysql_db_list) > 1: if len(mysql_db_list) > 1:
kw['extra_sql_connection_string_list'] = ','.join(mysql_db_list[1:]) kw['extra_sql_connection_string_list'] = ','.join(mysql_db_list[1:])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment