Skip to content

Commit

Permalink
Revert "enable logging in tests" (nginx#5543)
Browse files Browse the repository at this point in the history
Revert "enable logging in tests (nginx#5499)"

This reverts commit 30a4824.
  • Loading branch information
oseoin authored and ssrahul96 committed Jun 20, 2024
1 parent 43479e0 commit de2535e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 =====================")
Expand Down

0 comments on commit de2535e

Please sign in to comment.