We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2613740 commit 8f4de69Copy full SHA for 8f4de69
tests/conftest.py
@@ -190,7 +190,7 @@ def pytest_runtest_makereport(item) -> None:
190
rep = outcome.get_result()
191
192
# we only look at actual failing test calls, not setup/teardown
193
- 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":
194
pod_namespace = item.funcargs["ingress_controller_prerequisites"].namespace
195
pod_name = get_first_pod_name(item.funcargs["kube_apis"].v1, pod_namespace)
196
print("\n===================== IC Logs Start =====================")
0 commit comments