summaryrefslogtreecommitdiff
path: root/test/system
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2022-02-21 21:55:03 +0100
committerPaul Holzinger <pholzing@redhat.com>2022-02-21 21:57:08 +0100
commitb19251242ef827c5188e172d229f2a238dc13d6c (patch)
tree1ea963598ecf2a2c6c861b7b921a8e7b32962e35 /test/system
parenta746a61a171d514947dbd4db88541e3702647f2d (diff)
downloadpodman-b19251242ef827c5188e172d229f2a238dc13d6c.tar.gz
podman-b19251242ef827c5188e172d229f2a238dc13d6c.tar.bz2
podman-b19251242ef827c5188e172d229f2a238dc13d6c.zip
system tests: cleanup networks on teardown
When a test which creates a network fail it will not remove the network. The teardown logic should remove the networks. Since there is no --all option for network rm we use network prune --force. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'test/system')
-rw-r--r--test/system/helpers.bash1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/system/helpers.bash b/test/system/helpers.bash
index ee5f73867..221315b97 100644
--- a/test/system/helpers.bash
+++ b/test/system/helpers.bash
@@ -108,6 +108,7 @@ function basic_teardown() {
echo "# [teardown]" >&2
run_podman '?' pod rm -t 0 --all --force --ignore
run_podman '?' rm -t 0 --all --force --ignore
+ run_podman '?' network prune --force
command rm -rf $PODMAN_TMPDIR
}