Skip to content

Commit

Permalink
test: debug deprecated bond test failures
Browse files Browse the repository at this point in the history
When the test fails, gather additional information to help
diagnose the failure.

Signed-off-by: Rich Megginson <[email protected]>
  • Loading branch information
richm committed Jul 2, 2024
1 parent 008fe5c commit 5e384bb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/playbooks/tests_bond_deprecated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,17 @@
retries: 20
delay: 2
changed_when: false
rescue:
- name: Gather failure information
shell: |
exec 1>&2
set -xo pipefail
ip -d -s link show
ip -d -s a s
journalctl -ex
ps -ef | grep dnsmasq || :
changed_when: false
failed_when: true
always:
- name: Clean up the test devices and the connection profiles
tags:
Expand Down

0 comments on commit 5e384bb

Please sign in to comment.