X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/97c572b92f5e09d646ce045a949e40d53f87243a..a0acc6e913fa7903e2426f35b07ffcd0df3d0b05:/tests/steps/osm2pgsql_setup.py?ds=inline diff --git a/tests/steps/osm2pgsql_setup.py b/tests/steps/osm2pgsql_setup.py index eaa14573..4b03b1ea 100644 --- a/tests/steps/osm2pgsql_setup.py +++ b/tests/steps/osm2pgsql_setup.py @@ -155,7 +155,8 @@ def osm2pgsql_load_place(step): cmd = [os.path.join(world.config.source_dir, 'utils', 'setup.php')] cmd.extend(['--osm-file', fname, '--import-data','--osm2pgsql-cache', '300']) - proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) + proc = subprocess.Popen(cmd, cwd=world.config.source_dir, + 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) @@ -204,7 +205,8 @@ def osm2pgsql_update_place(step): cmd = [os.path.join(world.config.source_dir, 'utils', 'update.php')] cmd.extend(['--import-diff', fname]) - proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) + proc = subprocess.Popen(cmd, cwd=world.config.source_dir, + stdout=subprocess.PIPE, stderr=subprocess.PIPE) (outp, outerr) = proc.communicate() assert (proc.returncode == 0), "OSM data update failed:\n%s\n%s\n" % (outp, outerr)