Skip to content

Commit 8f4de69

Browse files
authored
Revert "enable logging in tests" (#5543)
Revert "enable logging in tests (#5499)" This reverts commit 30a4824.
1 parent 2613740 commit 8f4de69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def pytest_runtest_makereport(item) -> None:
190190
rep = outcome.get_result()
191191

192192
# we only look at actual failing test calls, not setup/teardown
193-
if rep.when == "call" and item.config.getoption("--show-ic-logs") == "yes":
193+
if rep.when == "call" and rep.failed and item.config.getoption("--show-ic-logs") == "yes":
194194
pod_namespace = item.funcargs["ingress_controller_prerequisites"].namespace
195195
pod_name = get_first_pod_name(item.funcargs["kube_apis"].v1, pod_namespace)
196196
print("\n===================== IC Logs Start =====================")

0 commit comments

Comments
 (0)