From e2e146590b3dcc72a36479a25352840529ea5b47 Mon Sep 17 00:00:00 2001 From: jgilaber Date: Tue, 21 Jan 2025 16:58:41 +0100 Subject: [PATCH] Fix after_kuttl commands so that the output is not truncated The commands run after kuttl were simply redirecting the output and not appending to the file, so if there were multiple commmands run, only the output of the last one was kept. Instead, append to the file so the output of all commands is visible. --- ci/playbooks/kuttl/run-kuttl-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/playbooks/kuttl/run-kuttl-tests.yml b/ci/playbooks/kuttl/run-kuttl-tests.yml index e874ed9f2e..f2ca594865 100644 --- a/ci/playbooks/kuttl/run-kuttl-tests.yml +++ b/ci/playbooks/kuttl/run-kuttl-tests.yml @@ -60,7 +60,7 @@ KUBECONFIG: "{{ cifmw_openshift_kubeconfig }}" PATH: "{{ cifmw_path }}" ansible.builtin.shell: | - {{ item }} > {{ cifmw_artifacts_basedir }}/logs/cmd_after_{{ operator }}_kuttl.log + {{ item }} >> {{ cifmw_artifacts_basedir }}/logs/cmd_after_{{ operator }}_kuttl.log loop: "{{ commands_after_kuttl_run }}" ignore_errors: true