Skip to content

Commit 30a4824

Browse files
authored
enable logging in tests (#5499)
1 parent a1c16c6 commit 30a4824

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/actions/smoke-tests/action.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ runs:
7373
--durations=10 \
7474
--show-ic-logs=yes \
7575
--ad-secret=${{ inputs.azure-ad-secret }} \
76-
-m ${{ inputs.marker != '' && inputs.marker || '""' }}
76+
-m ${{ inputs.marker != '' && inputs.marker || '""' }} \
77+
-v \
78+
-s
7779
working-directory: ./tests
7880
shell: bash

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 rep.failed and item.config.getoption("--show-ic-logs") == "yes":
193+
if rep.when == "call" 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)