From 5e384bbe8df63b258c7e8ef5ba67147d76be7866 Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Fri, 14 Jun 2024 18:00:38 -0600 Subject: [PATCH] test: debug deprecated bond test failures When the test fails, gather additional information to help diagnose the failure. Signed-off-by: Rich Megginson --- tests/playbooks/tests_bond_deprecated.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/playbooks/tests_bond_deprecated.yml b/tests/playbooks/tests_bond_deprecated.yml index e90952c..3c63b98 100644 --- a/tests/playbooks/tests_bond_deprecated.yml +++ b/tests/playbooks/tests_bond_deprecated.yml @@ -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: