network/tests/tasks/cleanup_802_1x_server.yml
Rich Megginson e681c3fea5 test: improve bond test failure debugging
Improve bond test failure debugging
* put test setup into block/always so that cleanup happens for setup failures
* trace shell commands so that we can determine exactly which command failed
* add error reporting so that when certain commands fail, we can determine the error code

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
2024-02-27 13:17:16 -05:00

23 lines
517 B
YAML

# SPDX-License-Identifier: BSD-3-Clause
---
- name: Remove test interfaces
shell: |
set -uxo pipefail
exec 1>&2
ip netns delete ns1
ip link delete veth1-br
ip link delete veth2-br
ip link delete br1
changed_when: false
- name: Kill hostapd process
command: pkill hostapd
changed_when: false
- name: Remove certs and config
file:
state: absent
path: "{{ item }}"
with_items:
- /etc/pki/tls/hostapd_test
- /etc/hostapd/wired.conf
- /etc/hostapd/hostapd.eap_user