Commit 70d03aff authored by Vincent Pelletier's avatar Vincent Pelletier

xrange first parameter can be omitted if 0.

parent 0dd7a379
...@@ -34,7 +34,7 @@ class Recipe(GenericBaseRecipe): ...@@ -34,7 +34,7 @@ class Recipe(GenericBaseRecipe):
if 'test-database' in options: if 'test-database' in options:
options['test-password'] = self.generatePassword() options['test-password'] = self.generatePassword()
options.setdefault('parallel-test-database-amount', '0') options.setdefault('parallel-test-database-amount', '0')
for x in xrange(0, int(options['parallel-test-database-amount'])): for x in xrange(int(options['parallel-test-database-amount'])):
options['test-password-%s' % x] = self.generatePassword() options['test-password-%s' % x] = self.generatePassword()
def install(self): def install(self):
...@@ -88,7 +88,7 @@ class Recipe(GenericBaseRecipe): ...@@ -88,7 +88,7 @@ class Recipe(GenericBaseRecipe):
} }
)) ))
# parallel test databases # parallel test databases
for x in xrange(0, int(self.options['parallel-test-database-amount'])): for x in xrange(int(self.options['parallel-test-database-amount'])):
mysql_script_list.append(self.substituteTemplate( mysql_script_list.append(self.substituteTemplate(
self.getTemplateFilename('initmysql.sql.in'), 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