Commit 0dd7a379 authored by Vincent Pelletier's avatar Vincent Pelletier

Make test-database, test-user optional.

parent 13859ffe
......@@ -31,6 +31,7 @@ class Recipe(GenericBaseRecipe):
def _options(self, options):
options['password'] = self.generatePassword()
if 'test-database' in options:
options['test-password'] = self.generatePassword()
options.setdefault('parallel-test-database-amount', '0')
for x in xrange(0, int(options['parallel-test-database-amount'])):
......@@ -77,6 +78,7 @@ class Recipe(GenericBaseRecipe):
}
))
# default test database
if 'test-database' in self.options:
mysql_script_list.append(self.substituteTemplate(
self.getTemplateFilename('initmysql.sql.in'),
{
......
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