Fixes proper handling of location.json after failed test runs. #264

This commit is contained in:
Jaisen Mathai 2018-02-09 00:01:10 -08:00 committed by GitHub
parent 8950f756fe
commit aa12ffb13b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ def reset_dbs():
location_db = '{}-test'.format(constants.location_db)
if os.path.isfile(location_db):
if not os.path.isfile(location_db):
location_db = constants.location_db
if os.path.isfile(location_db):
_rename(location_db, '{}-test'.format(location_db))