Skip to content

Commit

Permalink
test: debug test failures
Browse files Browse the repository at this point in the history
Signed-off-by: Rich Megginson <[email protected]>
  • Loading branch information
richm committed Aug 18, 2024
1 parent f10433d commit f60063d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/tests_example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,18 @@
vars:
__file: "{{ __journald_dropin_dir }}/{{ __journald_dropin_conf }}"
__fingerprint: "system_role:journald"

rescue:
- name: Debug
shell: |
set -x
exec 1>&2
journalctl -ex
journalctl -b -u systemd-journald
cat "{{ __journald_dropin_dir }}/{{ __journald_dropin_conf }}"
changed_when: false
failed_when: true

always:
- name: Cleanup
file:
Expand Down

0 comments on commit f60063d

Please sign in to comment.