Skip to content

Commit

Permalink
Fix after_kuttl commands so that the output is not truncated
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cescgina authored and openshift-merge-bot[bot] committed Jan 27, 2025
1 parent c6ada1f commit e2e1465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/playbooks/kuttl/run-kuttl-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e2e1465

Please sign in to comment.