X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b82c8ceab9d714bcf15894fe7c785ca94afe4736..6fc32d9645f98ec39c8773d6bf01cc2f6d4969de:/tests/steps/db_setup.py diff --git a/tests/steps/db_setup.py b/tests/steps/db_setup.py index e1315ed9..8041c6cc 100644 --- a/tests/steps/db_setup.py +++ b/tests/steps/db_setup.py @@ -266,7 +266,8 @@ def query_cmd(step, query, with_dups): '--search', query] if with_dups is not None: cmd.append('--nodedupe') - 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, err) = proc.communicate() assert (proc.returncode == 0), "query.php failed with message: %s" % err world.page = outp