diff --git a/product/ERP5Type/tests/ERP5TypeTestSuite.py b/product/ERP5Type/tests/ERP5TypeTestSuite.py index 867355ac99056b46acb6e20203dcc7712a7f6bfe..f3c603fc7743906b4e85af6f329908568818b1d4 100644 --- a/product/ERP5Type/tests/ERP5TypeTestSuite.py +++ b/product/ERP5Type/tests/ERP5TypeTestSuite.py @@ -22,6 +22,10 @@ class ERP5TypeTestSuite(TestSuite): if self.instance: args = ('--instance_home=unit_test.%u' % self.instance,) + args instance_number = self.instance or 1 + for i, mysql_db in enumerate(self.mysql_db_list): + if 'kr_' not in mysql_db: + self.mysql_db_list[i] = mysql_db.replace('testdb', 'kr_testdb').replace('testuser', 'kr_testuser') + mysql_db_list = self.mysql_db_list[ (instance_number-1) * self.mysql_db_count: (instance_number) * self.mysql_db_count]