From: Sarah Hoffmann Date: Tue, 29 Mar 2016 21:14:03 +0000 (+0200) Subject: test: catch script output in as debug log output X-Git-Tag: v3.0.0~184 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/0419aada6e1045b8702bdf6ef4496c8c36d07695?ds=inline;hp=--cc test: catch script output in as debug log output --- 0419aada6e1045b8702bdf6ef4496c8c36d07695 diff --git a/tests/steps/terrain.py b/tests/steps/terrain.py index 349deafe..312d76cf 100644 --- a/tests/steps/terrain.py +++ b/tests/steps/terrain.py @@ -55,6 +55,7 @@ def run_nominatim_script(script, *args): proc = subprocess.Popen(cmd, cwd=world.config.source_dir, stdout=subprocess.PIPE, stderr=subprocess.PIPE) (outp, outerr) = proc.communicate() + logger.debug("run_nominatim_script: %s\n%s\n%s" % (cmd, outp, outerr)) assert (proc.returncode == 0), "Script '%s' failed:\n%s\n%s\n" % (script, outp, outerr) @world.absorb @@ -181,6 +182,7 @@ def db_template_setup(): cwd=world.config.source_dir, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) [outstr, errstr] = proc.communicate(input='') + logger.debug("running osm2pgsql for template: %s\n%s\n%s" % (osm2pgsql, outstr, errstr)) world.run_nominatim_script('setup', 'create-functions', 'create-tables', 'create-partition-tables', 'create-partition-functions', 'load-data', 'create-search-indices')