From 1d5b0ac62cf2623a6917d54a5eca7a37ae6d87bc Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sun, 25 Aug 2024 15:12:40 +0200 Subject: [PATCH] curl tests: more smarter logging --- lib/curl_tests.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/curl_tests.py b/lib/curl_tests.py index 5f7d9d6..01b0855 100644 --- a/lib/curl_tests.py +++ b/lib/curl_tests.py @@ -154,7 +154,11 @@ def run(tests): if full_params["path"] == "/": full_params["path"] = "" 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