change default nominatim path for tests to obvious '..'

This commit is contained in:
Sarah Hoffmann
2014-09-07 20:11:21 +02:00
parent 031f20c3e6
commit f94ee6ad57
3 changed files with 10 additions and 6 deletions

View File

@@ -40,6 +40,10 @@ The tests can be configured with a set of environment variables:
the next run. This speeds up tests considerably
but might lead to outdated errors for some
changes in the database layout.
* `NOMINATIM_KEEP_SCENARIO_DB` - if defined, the test database will not be
dropped after a test is finished. Should
only be used if one single scenario is run,
otherwise the result is undefined.
* `LOGLEVEL` - set to 'debug' to get more verbose output (only works properly
when output to a logfile is configured)
* `LOGFILE` - sends debug output to the given file

View File

@@ -23,7 +23,7 @@ class NominatimConfig:
logging.basicConfig(level=loglevel)
# Nominatim test setup
self.base_url = os.environ.get('NOMINATIM_SERVER', 'http://localhost/nominatim')
self.source_dir = os.path.abspath(os.environ.get('NOMINATIM_DIR', '../Nominatim'))
self.source_dir = os.path.abspath(os.environ.get('NOMINATIM_DIR', '..'))
self.template_db = os.environ.get('TEMPLATE_DB', 'test_template_nominatim')
self.test_db = os.environ.get('TEST_DB', 'test_nominatim')
self.local_settings_file = os.environ.get('NOMINATIM_SETTINGS', '/tmp/nominatim_settings.php')