X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/7075a5828e658cda653955096932a610bbbe0f99..0bbc25c9c5c3ab644d6771ccbd87f26c3d7552bf:/test/bdd/steps/queries.py diff --git a/test/bdd/steps/queries.py b/test/bdd/steps/queries.py index 7266be55..caefb661 100644 --- a/test/bdd/steps/queries.py +++ b/test/bdd/steps/queries.py @@ -321,12 +321,15 @@ def send_api_query(endpoint, params, fmt, context): (outp, err) = proc.communicate() outp = outp.decode('utf-8') + err = err.decode("utf-8") logger.debug("Result: \n===============================\n" + outp + "\n===============================\n") assert_equals(0, proc.returncode, - "%s failed with message: %s\noutput: %s" % (env['SCRIPT_FILENAME'], err, outp)) + "%s failed with message: %s" % ( + os.path.basename(env['SCRIPT_FILENAME']), + err)) assert_equals(0, len(err), "Unexpected PHP error: %s" % (err))