Skip to content

Commit

Permalink
remove db file only if exists
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Oct 17, 2013
1 parent 57796ac commit a9b0228
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pavement.py
Expand Up @@ -157,7 +157,9 @@ def setup_testdata():

# remove CITE database so we can build fresh
for suite in test_database_parameters.keys():
os.remove('tests/suites/%s/data/records.db' % suite)
dbfile = 'tests/suites/%s/data/records.db' % suite
if os.path.isfile(dbfile)
os.remove(dbfile)

for database, has_testdata in test_database_parameters.iteritems():
info('Setting up test database %s' % database)
Expand Down

0 comments on commit a9b0228

Please sign in to comment.