mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
add tests for Python exec_utils
This commit is contained in:
@@ -68,7 +68,10 @@ def run_api_script(endpoint, project_dir, extra_env=None, phpcgi_bin=None,
|
||||
check=False)
|
||||
|
||||
if proc.returncode != 0 or proc.stderr:
|
||||
log.error(proc.stderr.decode('utf-8').replace('\\n', '\n'))
|
||||
if proc.stderr:
|
||||
log.error(proc.stderr.decode('utf-8').replace('\\n', '\n'))
|
||||
else:
|
||||
log.error(proc.stdout.decode('utf-8').replace('\\n', '\n'))
|
||||
return proc.returncode or 1
|
||||
|
||||
result = proc.stdout.decode('utf-8')
|
||||
|
||||
Reference in New Issue
Block a user