From 271c77f8b12ea37004f716710afa60fd1f228203 Mon Sep 17 00:00:00 2001 From: oseoin Date: Tue, 14 May 2024 15:18:57 +0100 Subject: [PATCH] Revert "enable logging in tests (#5499)" This reverts commit 30a48243deb5169c1648d3c5f729c38d629c8e60. --- tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 34ef7852de..403a39806b 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -190,7 +190,7 @@ def pytest_runtest_makereport(item) -> None: rep = outcome.get_result() # we only look at actual failing test calls, not setup/teardown - if rep.when == "call" and item.config.getoption("--show-ic-logs") == "yes": + if rep.when == "call" and rep.failed and item.config.getoption("--show-ic-logs") == "yes": pod_namespace = item.funcargs["ingress_controller_prerequisites"].namespace pod_name = get_first_pod_name(item.funcargs["kube_apis"].v1, pod_namespace) print("\n===================== IC Logs Start =====================")