curl tests: more smarter logging

This commit is contained in:
Alexandre Aubin 2024-08-25 15:12:40 +02:00
parent 11aa602097
commit 1d5b0ac62c

View file

@ -154,7 +154,11 @@ def run(tests):
if full_params["path"] == "/": if full_params["path"] == "/":
full_params["path"] = "" full_params["path"] = ""
results[name + "_noslash"] = test(**full_params) results[name + "_noslash"] = test(**full_params)
display_result(results[name + "_noslash"])
# Display this result too, but only if there's really a difference compared to the regular test
# because 99% of the time it's the same as the regular test
if results[name + "_noslash"]["effective_url"] != results[name]["effective_url"]:
display_result(results[name + "_noslash"])
return results return results