Fixes proper handling of location.json after failed test runs. #264
This commit is contained in:
parent
8950f756fe
commit
aa12ffb13b
|
@ -160,7 +160,7 @@ def reset_dbs():
|
||||||
|
|
||||||
|
|
||||||
location_db = '{}-test'.format(constants.location_db)
|
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
|
location_db = constants.location_db
|
||||||
if os.path.isfile(location_db):
|
if os.path.isfile(location_db):
|
||||||
_rename(location_db, '{}-test'.format(location_db))
|
_rename(location_db, '{}-test'.format(location_db))
|
||||||
|
|
Loading…
Reference in New Issue