X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/86d90bc46005c00f2367ad759804f528adc4c6a5..f6bfadaef61a50a4ef1808b8547cc0f2a3b32d9e:/tests/steps/osm2pgsql_setup.py?ds=sidebyside diff --git a/tests/steps/osm2pgsql_setup.py b/tests/steps/osm2pgsql_setup.py index 40a6b39e..e5198d9d 100644 --- a/tests/steps/osm2pgsql_setup.py +++ b/tests/steps/osm2pgsql_setup.py @@ -108,7 +108,7 @@ def _sort_xml_entries(x, y): def write_osm_obj(fd, obj): if obj['type'] == 'N': - fd.write('\n') else: @@ -154,7 +154,7 @@ def osm2pgsql_load_place(step): logger.debug( "Filename: %s" % fname) cmd = [os.path.join(world.config.source_dir, 'utils', 'setup.php')] - cmd.extend(['--osm-file', fname, '--import-data']) + cmd.extend(['--osm-file', fname, '--import-data','--osm2pgsql-cache', '300']) proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) (outp, outerr) = proc.communicate() assert (proc.returncode == 0), "OSM data import failed:\n%s\n%s\n" % (outp, outerr)